Part Number Hot Search : 
01220 D1825 30700 CT245 DLZ16 9877A 81M35 D1825
Product Description
Full Text Search
 

To Download Q67100-H6222 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ics for communications enhanced serial communication controller escc2 sab 82532 saf 82532 version 3.2 users manual 07.96
edition 07.96 this edition was realized using the software system framemaker a . published by siemens ag, bereich halbleiter, marketing- kommunikation, balanstra?e 73, 81541 mnchen siemens ag 1996. all rights reserved. attention please! as far as patents or other rights of third parties are concerned, liability is only assumed for components, not for applications, processes and circuits implemented within components or assemblies. the information describes the type of component and shall not be considered as assured characteristics. terms of delivery and rights to change design reserved. for questions on technology, delivery and prices please contact the semiconductor group offices in germany or the siemens companies and representatives worldwide (see address list). due to technical requirements components may contain dangerous substances. for information on the types in question please contact your nearest siemens office, semiconductor group. siemens ag is an approved cecc manufacturer. packing please use the recycling operators known to you. we can also help you C get in touch with your nearest sales office. by agreement we will take packing material back, if it is sorted. you must bear the costs of transport. for packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for any costs in- curred. components used in life-support devices or systems must be expressly authorized for such purpose! critical components 1 of the semiconductor group of siemens ag, may only be used in life-support devices or systems 2 with the express written approval of the semiconductor group of siemens ag. 1 a critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the failure of that life-support device or system, or to affect its safety or effectiveness of that device or system. 2 life support devices or systems are intended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain hu- man life. if they fail, it is reasonable to assume that the health of the user may be endangered. sab 82532 saf 82532 revision history: current version: 07.96 previous version: users manual 07.93 page (in previous version) page (in new version) subjects (major changes since last revision) - 10 new package provided: p-mqfp-80 - 72 selectable out-of-band flow control in async mode: description added - 75 in-band flow control transparency: description added - 87 selectable enhanced resolution brg: description added 110, 141, 167 124, 170, 208 timer register (timr): description extended for v3.x 107, 127 120, 149 rsta register, isr0 register (rme interrupt): description extended 115, 146, 172 133, 179, 217 xbch, bit xc: description extended 124,152, 179 144, 187, 227 baud rate generator register (bgr): description extended 133 157 channel configuration register 4 (ccr4) in hdlc mode: description extended 138 164 star, bit xfw: description extended 140 168 mode register (mode) in async mode: new bits (frts, frcs) 144 175 rfifo control register (rfc) in async mode: new bit (dxs) - 198, 237 channel configuration register 4 (ccr4) in async and bisync mode: new register 204 256 xtal1 clock period, high time and low time: min. values for n-10 version corrected
sab 82532 table of contents page semiconductor group 3 07.96 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.2 pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.3 pin definitions and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.4 logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.5 functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 1.6 system integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 1.6.1 general aspects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 1.6.2 environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 1.6.2.1 escc2 with sab 8051 microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 1.6.2.2 escc2 with sab 80188 microprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.6.2.3 escc2 with sab 80286 microprocessor and sab 82258 advanced dma controller (adma) . . . . . . . . . . . . . . . . . 28 1.6.2.4 escc2 with 80386 or sab-r3000 (mips) . . . . . . . . . . . . . . . . . . . . . . . . . 29 1.6.2.5 escc2 with mc 68008 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 1.6.2.6 escc2 with mc 68000, 68010, 68012 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 1.6.2.7 escc2 with mc 68020, 68030 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 1.6.2.8 interrupt cascading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 2 basic functional principles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.1 general . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.2 fifo structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3 microprocessor interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.1 register set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.2 data transfer modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 3.3 interrupt interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 4 dma interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 5 hdlc/sdlc serial mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 5.1 operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 5.2 procedural support (layer-2 functions) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5.2.1 full-duplex lapb/lapd operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5.2.2 half-duplex sdlc-nrm operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 5.2.3 error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 5.3 sdlc loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 5.4 special functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 5.4.1 shared flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 5.4.2 preamble transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 5.4.3 crc-32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 5.4.4 extended transparent transmission and reception . . . . . . . . . . . . . . . . . 64 5.4.5 cyclic transmission (fully transparent) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 5.4.6 continuous transmission (dma mode only) . . . . . . . . . . . . . . . . . . . . . . . 65 5.4.7 receive length check feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
sab 82532 table of contents page semiconductor group 4 07.96 5.4.8 one bit insertion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 5.4.9 crc on/off feature (version 2 upward) . . . . . . . . . . . . . . . . . . . . . . . . . 67 5.4.10 receive address handling (version 2 upward) . . . . . . . . . . . . . . . . . . . . . . 67 6 asynchronous serial mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 6.1 character frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 6.2 data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.2.1 operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.2.2 storage of data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 6.3 data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 6.4 special features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 6.4.1 break detection/generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 6.4.2 flow control by xon/xoff (version 2 upward) . . . . . . . . . . . . . . . . . . . . . 71 6.4.3 selectable out-of-band flow control for transmitter and receiver (v3.x) . 72 6.4.4 in-band flow control transparency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.4.5 continuous transmission (dma mode only) . . . . . . . . . . . . . . . . . . . . . . . 75 7 character oriented serial mode (monosync/bisync) . . . . . . . . . . . . 76 7.1 data frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 7.2 data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 7.3 data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 7.4 special functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 7.4.1 preamble transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 7.4.2 continuous transmission (dma mode only) . . . . . . . . . . . . . . . . . . . . . . . 79 7.4.3 crc parity inhibit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 8 serial interface (layer-1 functions) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 8.1 clock modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 8.2 clock recovery (dpll) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 8.3 bus configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 8.3.1 bus access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 8.3.2 collisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 8.3.3 priority (hdlc/sdlc mode only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 8.3.4 timing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 8.3.5 functions of rts output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 8.4 data encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 8.5 modem control functions (rts/cts, cd) . . . . . . . . . . . . . . . . . . . . . . . . . 97 8.5.1 rts/cts handshaking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 8.5.2 carrier detect (cd) receiver control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 8.6 test mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 8.7 universal port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 9 operational description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 9.1 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 9.2 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
sab 82532 table of contents page semiconductor group 5 07.96 9.3 operational phase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 9.3.1 data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 9.3.1.1 interrupt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 9.3.1.2 dma mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 9.3.2 data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 9.3.2.1 interrupt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 9.3.2.2 dma mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 10 detailed register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 10.1 status/control registers in hdlc mode . . . . . . . . . . . . . . . . . . . . . . . . . 112 10.1.1 register addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 10.1.2 register definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 10.2 status/control registers in async mode . . . . . . . . . . . . . . . . . . . . . . . . 159 10.2.1 register addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 10.2.2 register definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 10.3 status/control registers in bisync mode . . . . . . . . . . . . . . . . . . . . . . . . 199 10.3.1 register addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 10.3.2 register definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 11 electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 11.1 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 11.2 dc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 11.3 capacitances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 11.4 ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 11.4.1 microprocessor interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 11.4.1.1 siemens/intel bus interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 11.4.1.2 motorola bus interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 11.4.2 parallel port timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 11.4.3 serial interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 11.4.3.1 clock input timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 11.4.3.2 receive cycle timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 11.4.3.3 transmit cycle timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259 11.4.3.4 strobe timing (clock mode 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 11.4.3.5 synchronization timing (clock mode 5) . . . . . . . . . . . . . . . . . . . . . . . . . . 263 11.4.3.6 reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 12 package outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 13 appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 13.1 baud rate generator tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 13.2 development board easy532 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
sab 82532/saf 82532 introduction semiconductor group 6 07.96 1 introduction the enhanced serial communication controller escc2 (sab 82532/saf 82532) is a multiprotocol data communication controller with two symmetrical serial channels. it has been designed to implement high-speed communication links and to reduce hardware and software overhead needed for serial synchronous/asynchronous communications. each channel contains an independent clock generator, dpll, encoder/decoder and programmable protocol hardware. data communication with asynchronous, synchronous character oriented, and hdlc based protocols with extended support of x.25 lapb, the isdn lapd, and sdlc protocols is implemented. like the sab 82525 (hscx) which is a functional subset of the escc2, the escc2 is capable of handling a large set of layer-2 protocol functions independently of the host processor. the version 82532n-10 of the enhanced serial communication controller (escc2) opens a wide area for applications which use time division multiplex methods (e.g. time-slot oriented pcm systems, systems designed for packet switching, isdn applications) by its programmable telecom-specific features. in this special operating mode (clock mode 5), which is applicable to all serial modes (hdlc/sdlc, async, bisync), the escc2 can transmit or receive data packets in one of up to 64 time-slots of programmable width. the device is controlled via a parallel 16-bit wide interface which is directly compatible with the most popular 8/16 bit microprocessors (siemens/intel or motorola type). the internal fifos (64 bytes per direction and channel) with additional dma capability provide a powerful interface to the higher layers implemented in a microcontroller. for interrupt controlled systems, the escc2 supports daisy chaining and interrupt vector generation. the escc2 is fabricated using siemens advanced cmos technology and is available in a p-lcc-68 and a p-mqfp-80 package. applications ? universal, multiprotocol communication board for workstation- and pc-boards ? terminal controllers ? computer peripherals ? time slotted packet networks ? multimaster communication networks ? lans
p-lcc-68 p-mqfp-80-1 enhanced serial communication controller escc2 sab 82532 saf 82532 semiconductor group 7 07.96 cmos ic type ordering code package max. data rate ext. int. (dpll) clocked time slot mode sab 82532 n q67101-h6790 p-lcc-68 2.048 mbit/s 2 mbit/s no sab 82532 n-10 q67101-h6791 p-lcc-68 10 mbit/s 2 mbit/s yes sab 82532 h q67101-h6788 p-mqfp-80 2.048 mbit/s 2 mbit/s no sab 82532 h-10 q67101-h6789 p-mqfp-80 10 mbit/s 2 mbit/s yes saf 82532 n-10 on request p-lcc-68 10 mbit/s 2 mbit/s yes saf 82532 h-10 on request p-mqfp-80 10 mbit/s 2 mbit/s yes 1.1 features serial interface ? two independent full duplex serial channels C on chip clock generation or external clock source C on chip dpll for clock recovery of each channel C two independent baud rate generators C independent time-slot assignment for each channel with programmable time-slot length (1 256 bits) ? async, sync character oriented (monosync/bisync) or hdlc/sdlc modes (including sdlc loop) ? transparent receive/transmit of data bytes without framing ? nrz, nrzi, fm and manchester encoding ? modem control lines ( rts, cts, cd) ? crc support: C hdlc/sdlc: crc-ccitt or crc-32 (automatic handling for transmit/receive direction) C bisync: crc-16 or crc-ccitt (support for transmit direction)
sab 82532/saf 82532 introduction semiconductor group 8 07.96 ? support of bus configuration by collision detection and resolution ? statistical multiplexing ? continuous transmission of 1 to 32 bytes possible ? programmable preamble (8 bit) with selectable repetition rate (hdlc/sdlc and bisync) ? data rate up to 10 mbit/s ? master clock mode with data rate up to 4 mbit/s protocol support (hdlc/sdlc) ? various types of protocol support depending on operating mode C auto mode (automatic handling of s- and i-frames) C non-auto mode C transparent mode ? handling of bit oriented functions ? support of lapb/lapd/sdlc/hdlc protocol in auto mode (i- and s-frame handling) ? modulo-8 or modulo-128 operation ? programmable time-out and retry conditions ? programmable maximum packet size checking mp interface and ports ? 64 byte fifos per channel and direction (byte or word access) ? 8/16 bit microprocessor bus interface (intel or motorola type) ? all registers directly accessible (byte and word access) ? efficient transfer of data blocks from/to system memory via dma or interrupt request ? support of daisy chaining and slave operation with interrupt vector generation ? 8-bit programmable bi-directional universal port general ? advanced cmos technology ? low power consumption: active 40 mw at 2 mhz/standby 5 mw (typical values) ? p-lcc-68 package ? p-mqfp-80 package
sab 82532/saf 82532 introduction semiconductor group 9 07.96 1.2 pin configuration (top view) figure 1 p-lcc-68
sab 82532/saf 82532 introduction semiconductor group 10 07.96 p-mqfp-80-1 figure 2
sab 82532/saf 82532 introduction semiconductor group 11 07.96 1.3 pin definitions and functions pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80 2 ... 8 31 37 a0 ... a6 i address bus these inputs interface with seven bits of the systems address bus to select one of the internal registers for read or write. 60 ... 45 19 4 d0 ... d15 i/o data bus bi-directional three-state data lines which interface with the systems data bus. their configuration is controlled by the level of pin width: C 8-bit mode (width = 0): d0 ... d7 are active. d8 ... d15 are in high impedance and have to be connected to v dd or v ss . C 16-bit mode (width = 1): d0 ... d15 are active. in case of byte transfers, the active half of the bus is determined by a0 and bhe/ ble and the selected bus interface mode (via ale). the unused half is in high impedance. for detailed information, refer to chapter 3.1 . 9 38 ale i address latch enable the level at this pin defines the bus interface mode: fixed to v ss : demultiplexed siemens/intel bus interface fixed to 1: demultiplexed motorola bus interface switching: multiplexed siemens/intel bus interface the address information provided on lines a0 ... a6 is internally latched with the falling edge of ale. this function allows the escc2 to be directly connected to a multiplexed address/data bus. in this case, pins a0 ... a6 must be externally connected to the data bus pins (e.g. d0 d6 for 8-bit cpus). note: all unused input pins have to be connected to a defined level.
sab 82532/saf 82532 introduction semiconductor group 12 07.96 11 43 rd/ ds i read enable (siemens/intel bus mode) this signal indicates a read operation. when the escc2 is selected via cs the read signal enables the bus drivers to output data from an internal register addressed via a0 a6 on to data bus. for more information about control/status register and fifo access in the different bus interface modes refer to chapter 2 . if dma transfer is selected via dacka or dackb, the rd signal enables the bus drivers to put data from the corresponding receive fifo on the data bus. inputs a1 a6 are ignored. a0 and bhe/ ble are used to select byte or word access. data strobe (motorola bus mode) this pin serves as input to control read/write operations. 12 44 wr/r/ wi write enable (siemens/intel bus mode) this signal indicates a write operation. when cs is active the escc2 loads an internal register with data provided via the data bus. for more information about control/status register and fifo access in the different bus interface modes refer to chapter 2 . if dma transfer is selected via dacka or dackb, the wr signal enables latching data from the data bus on the top of the corresponding transmit fifo. inputs a0 a6 are ignored. read/write enable (motorola bus mode) this signal distinguishes between read and write operation. 13 45 cs i chip select a low signal selects the escc2 for read/write operations. cs has no function in interrupt acknowledge or dma cycles. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 13 07.96 28 63 res i reset a high signal on this pin forces the escc2 into reset state. during reset the escc2 is in power up mode, after reset in power-down mode. re-activation of each channel is done via bit ccr0:pu (refer to chapter 9.2 ). during reset C all uni-directional output stages are in high-impedance state, C all bi-directional output stages (data bus) are in high-impedance state, C output xtal2 is in high-impedance if input xtal1 is high (the internal oscillator is disabled during reset), C signals rd and inta have to be high 10 42 bhe/ ble i bus high enable (siemens/intel bus mode) if 16-bit bus interface mode is enabled, this signal indicates a data transfer on the upper byte of the data bus (d8d15). in 8-bit bus interface mode this signal has no function and should be tied to v dd . refer to chapter 3.1 for detailed information. bus low enable (motorola bus mode) if 16-bit bus interface mode is enabled, this signal indicates a data transfer on the lower byte of the data bus (d0 d7). in 8-bit bus interface mode this signal has no function and should be tied to v dd . refer to chapter 3.1 for detailed information. 29 64 width i width of bus interface (bus interface mode) a low signal on this input selects the 8-bit bus interface mode. a high signal on this input selects the 16-bit bus interface mode. in this case word transfer to/from the internal registers is enabled. moreover, byte transfers (in conjunction with a0 and bhe/ ble) are allowed, too. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 14 07.96 22 54 dtack o (od) data transfer acknowledge during a bus cycle (read/write, asynchronous bus), this signal indicates that escc2 is ready for data transfer. the signal remains active until the data strobe ( ds, rd or wr) and/or the chip select signal ( cs) or the interrupt acknowledge ( inta) go inactive. an external resistor has to be tied to v dd if this function is used. 26 58 int o (od) interrupt request int serves as general interrupt request which may include all serial mode specific interrupt sources and the requests of the 8-bit universal port if programmed. these interrupt sources can be masked via registers imr0, imr1 (channel) and pim (universal port). interrupt status is reported via registers gis (global interrupt status), isr0, isr1 (channel) and pis (universal port). output characteristics (push-pull active low/high, open drain) are determined by programming the ipc register. in daisy chain cascading mode int signal generation is only enabled if the interrupt enable input ie1 is active (logical 1). int is reset if C interrupts are disabled in daisy chain cascading mode (pin ie1 = 0), C no further interrupt is pending, i.e. all interrupt status bits are reset. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 15 07.96 25 57 inta i interrupt acknowledge if the interrupt is acknowledged via pin inta, an interrupt vector is output on d0 d7. all interrupt sources are organized in 8 groups with fixed priority (refer to chapter 2 ). the generated interrupt vector refers to the interrupt group with currently highest priority (although more than one interrupt source/group may be active). reaction on inta signal depends on the bus interface mode and the cascading mode in conjunction with the interrupt enable pins ie0 and ie1 (ref. to ipc register): motorola bus mode: int is reset with the rising edge of the following valid inta cycle if no further interrupt is pending. the interrupt vector is output with signal ds. siemens/intel bus mode: int is reset with the rising edge of the second valid inta cycle (2-cycle 86 mode) if no further interrupt is pending. slave mode: interrupt acknowledge is accepted if an interrupt signal has been generated and the slave address provided via ie0, ie1 corresponds to the programmed value (ipc register). daisy chaining mode: interrupt acknowledge is accepted if an interrupt signal has been generated and interrupt enable input ie1 is active during the following inta cycle. note: pins cs, dacka and dackb have to be inactive during an inta cycle. if pin inta is not used, it has to be tied to v dd . 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 16 07.96 24 23 56 55 ie0 ie1 i/o i interrupt enable 0, 1 the function depends on the selected cascading mode: slave mode: ie0 and ie1 are inputs. interrupt acknowledge is accepted if an interrupt signal has been generated and the slave address provided via ie0, ie1 corresponds to the programmed value (ipc register). if not used, ie0 and ie1 should be tied to gnd and the slave address should be set to 0 (e.g. single device application). daisy chaining mode: ie0 is output, ie1 is input. normally, ie1 is connected to the ie0 pin of devices with higher priority. if not used, ie1 has to be fixed to 1. if ie1 is reset (0) C the ie0 output is reset immediately, C an active int signal will be prohibited or aborted. as long as inta input is inactive, ie1 = 1 enables int signal generation. if int goes active, pin ie0 immediately is set to 0. interrupt acknowledge is accepted if the interrupt enable input ie1 is active during the following inta cycle. during this cycle, and additionally till the end of the second inta cycle in siemens/intel bus mode, triggering of int signal generation is prohibited, i.e. no interrupt will be generated while (another) device is under service. this is valid even for devices with higher priority. pin ie0 returns to active state (logical 1) when int is reset and ie1 input is high. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 17 07.96 34 33 70 69 drta drtb o dma request transmitter (channel a/channel b) the transmitter of escc2 requests a dma transfer by activating this line. the request remains active as long as the respective transmit fifo requires data transfers. the amount of data bytes to be transferred from the system memory to the escc2 (= byte count) must be written first to the xbch, xbcl registers. always blocks of data (n 32 bytes + rest, n = 0, 1, ) are transferred till the byte count is reached. drtn is deactivated with the beginning of the last write cycle. 32 31 68 67 drra drrb o dma request receiver (channel a/channel b) the receiver of escc2 requests a dma transfer by activating this line. the request remains active as long as the corresponding receive fifo requires data transfers, thus always blocks of data are transferred. drrn is deactivated immediately following the falling edge of the last read cycle. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 18 07.96 36 35 72 71 dacka dackb i dma acknowledge (channel a/channel b) a low signal on these pins informs the escc2 that the requested dma cycle controlled via drta/b or drra/b is in progress, i.e. the dma controller has achieved bus mastership from the cpu and will start data transfer cycles (either write or read). in conjunction with a read or write operation these inputs serve as access enable (similar to cs) to the respective fifos. if dack is active, the input to pins a1 a6 is ignored and the fifos are implicitly selected. a0 and bhe/ ble are used to select byte or word access. if not used, these pins must be connected to v dd . 14 21 46 53 rxda rxdb i (o/od) receive data (channel a/channel b) serial data is received on these pins. may be switched to txd function via bit ccr2:soc1. 43 40 79 76 rxclka rxclkb i receive clock (channel a/channel b) the function of these pins depends on the selected clock mode. in each channel, rxclkn may supply either C the receive clock (clock mode 0), or C the receive and transmit clock (clock mode 1, 5), or C the clock input for the baud rate generator (clock mode 2, 3). 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 19 07.96 15 20 47 52 rtsa rtsb o request to send (channel a/channel b) when the rts bit in the mode register is set, the rts signal goes low. when the rts bit is reset, the signal goes high if the transmitter has finished and there is no further request for a transmission. in bus configuration, rts can be programmed via ccr2 to: C go low during the actual transmission of a frame shifted by one clock period, excluding collision bits. C go low during reception of a data frame. C stay always high ( rts disabled). 16 19 48 51 ctsa/ cxda ctsb/ cxdb i clear to send (channel a/channel b) a low on the ctsn input enables the respective transmitter. additionally, an interrupt may be issued if a state transition occurs at the ctsn pin (programmable feature). if no clear to send function is required, the ctsn inputs can be directly connected to gnd. collision data (channel a/channel b) in a bus configuration, the external serial bus must be connected to the corresponding cxdn pin for collision detection. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 20 07.96 42 41 78 77 cda cdb i carrier detect (channel a/channel b) the function of this pin depends on the selected clock mode. it can supply C either a modem control or a general purpose input (clock modes 0, 2, 3, 4, 6, 7). if auto-start is programmed, it functions as a receiver enable signal. C or a receive strobe signal (clock mode 1). C or a frame synchronization signal in time-slot oriented operation mode (clock mode 5). additionally, an interrupt may be issued if a state transition occurs at the cdn pin (programmable feature). 17 18 49 50 txda txdb o/od (i) transmit data (channel a/channel b) transmit data is shifted out via these pins. they can be programmed to be either a push-pull or open drain output to support bus configurations. note: pin txd is ored with pin rts if nrzi encoding and idle as interframe note: time fill are selected and bit mode:rts is reset. may be switched to rxd function via bit ccr2:soc1. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 21 07.96 44 39 3 75 txclka txclkb i/o transmit clock (channel a/channel b) the function of this pin depends on the selected clock mode and the value of the ssel bit (ccr2 register). for detailed information about the clock modes refer to chapter 2 . if programmed as an input, this pin supplies either C the transmit clock for the channel (clock mode 0, 2, 6; ssel bit in ccr2 is reset), or C a transmit strobe signal for the channel (clock mode 1). if programmed as an output (bit ccr2:toe is set), this pin supplies either C the transmit clock for the channel which is generated ? either from the baud rate generator (clock mode 2, 3, 6, 7; ssel bit in ccr2 is set), ? or from the dpll circuit (clock mode 3, 7; ssel bit in ccr2 is reset) ? or from the crystal oscillator (clock mode 4), ? or an active-low tri-state control signal marking the programmed transmit time-slot (clock mode 5) if bit ccr2:toe is set. 38 37 74 73 xtal1 xtal2 i (o) crystal connection if the internal oscillator is used for clock generation the external crystal has to be connected to these pins. moreover, xtal1 may be used as common clock input for channel a and channel b provided by an external clock generator. all versions: common use for both channels in clock modes 4, 6, 7. version 2 upward: additionally used in clock mode 0b and for master clock applications. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 22 07.96 62 ... 68,1 23 30 p0 p7 i/o parallel port a general purpose 8-bit bi-directional parallel port is provided on pins p0 p7. every pin is individually programmable to operate as an output or an input (port configuration register pcr). C if defined as output, the state of the pin is directly controlled via the microprocessor interface (port value register pvr). C if defined as input, its state can be read via pvr. all changes may be indicated via an interrupt status (port interrupt mask register pim, port interrupt status register pis, interrupt is output on pin int). 30 61 21, 22, 65, 66 v ss i ground (0 v) for correct operation, all pins have to be connected to ground. 27 61, 62 v dd i positive power supply note: all unused input pins have to be connected to a defined level. 1.3 pin definitions and functions (contd) pin no. symbol input (i) output (o) function p-lcc-68 p-mqfp-80
sab 82532/saf 82532 introduction semiconductor group 23 07.96 1.4 logic symbol figure 3 escc2 logic symbol
sab 82532/saf 82532 introduction semiconductor group 24 07.96 1.5 functional block diagram figure 4 functional block diagram sab 82532/saf 82532 the escc2 (sab 82532/saf 82532) comprises two completely independent full-duplex serial interfaces (channel a and channel b) which support hdlc/sdlc, bisync and async protocols. layer-1 functions are performed by means of internal oscillator, baud rate generator (brg), digital phase locked loop (dpll), and time-slot assignment circuits (tsa, only available for versions sab/saf 82532 n-10 and sab/saf 82532 h-10). encoding/decoding of serial data can be done by using nrz, nrzi, fm0, fm1 and manchester encoding schemes. an 8-bit universal bi-directional port is provided which can be used for additional modem control lines or for general i/o purposes. associated with each serial channel is a set of independent command and status registers and 64-byte deep fifos for transmit and receive direction. access is done via the flexible 8/16-bit microprocessor interface. dma capability has been added to the escc2 by means of a 4-channel dma interface with one dma request line for each transmitter and receiver of both channels. the interrupt structure of escc2 supports interrupt driven systems using interrupt polling, daisy chaining or interrupt vector control.
sab 82532/saf 82532 introduction semiconductor group 25 07.96 1.6 system integration 1.6.1 general aspects figure 5 general system integration of escc2 figure 5 gives a general overview of system integration of escc2. the escc2s bus interface consists of an 8/16-bit bidirectional data bus (d0 d15), seven address line inputs (a0 a6), three control inputs ( rd/ ds, wr/r/ w, cs), four signals for interrupt support (int, inta, ie0, ie1) and a 4-channel dma interface (drta, drra, dacka, drtb, drrb, dackb). mode input pins (strapping options) allow the bus interface to be configured for 8/16-bit bus width and for either siemens/intel or motorola environment. generally, there are two types of transfers occurring via the system bus: C command/status transfers, which are always controlled by the cpu. the cpu sets the operation mode (initialization), controls function sequences and gets status information by writing or reading the escc2s registers (via cs, wr or rd, and register address via a0 a6). C data transfers, which are effectively performed by dma without cpu interaction using the escc2s dma interface (dma mode). optionally, interrupt controlled data transfer can be done by the cpu (interrupt mode).
sab 82532/saf 82532 introduction semiconductor group 26 07.96 1.6.2 environment 1.6.2.1 escc2 with sab 8051 microcontroller for cost-sensitive applications, the escc2 can be interfaced with a small 8051 microcontroller system (without dma support) very easily as shown in figure 6 . figure 6 escc2 with sab 8051 cpu although the escc2 provides a demultiplexed bus interface, it can optionally be connected directly to the local multiplexed bus of 8051 because of the internal address latch function (via ale). the address lines a0 a6 must be wired externally to the data lines d0 d6 (direct connection) in this case. since data transfer is controlled by interrupt, the dma acknowledge inputs ( dacka, dackb) are connected to v dd .
sab 82532/saf 82532 introduction semiconductor group 27 07.96 1.6.2.2 escc2 with sab 80188 microprocessor a system with minimized additional hardware expense can be build up with a sab 80188 microprocessor as shown in figure 7 . figure 7 escc2 with sab 80188 cpu the escc2 is connected to the demultiplexed system bus. data transfer for one serial channel can be done by the 2-channel on-chip dma controller of the 80188, the other channel is serviced by interrupt. since the 80188 does not provide dma acknowledge outputs, data transfer from/to escc2 is controlled via cs, rd or wr address information (a0 a6) and the dacka, dackb inputs are not used. this solution supports applications with a high speed data rate in one serial channel with minimum hardware expense making use of the on-chip peripheral functions of the 80188 (chip select logic, interrupt controller, dma controller).
sab 82532/saf 82532 introduction semiconductor group 28 07.96 1.6.2.3 escc2 with sab 80286 microprocessor and sab 82258 advanced dma controller (adma) in applications where two high-speed channels are required, a 16-bit system with 80286 cpu and 82258 advanced dma controller (adma) is suitable. this is shown in figure 8 . figure 8 escc2 with sab 80286 cpu/sab 82258 adma the four selector channels of adma are used for serving the four dma request sources of escc2, allowing very high data rates for both the system bus and the serial channels.
sab 82532/saf 82532 introduction semiconductor group 29 07.96 another significant advantage of the adma is its data chaining feature, providing an optimized memory management for receive and transmit data. recording the escc2, a linked chain of 32 byte deep buffers can be set up, which are subsequently filled with the contents of the escc2s fifos during reception. unused buffers can be saved and linked to another buffer chain reserved for the reception of the next frame. as a result, it is not necessary to reserve a very large space in system memory, for example determined by the maximum frame length of every received frame. in this example, the adma works directly on the cpus local bus and shares the same bus interface logic (address latches, transceivers, bus controller) with the 80286. since one dma acknowledge line is provided for each dma request, two dackn outputs must be anded together for input to the escc2. the escc2s data lines (d0 d15) are connected to the system data bus and the address lines to a0 a6. pin width has to be tied to v dd to select the 16-bit interface mode of the escc2, pin ale has to be fixed to v ss to enable demultiplexed intel bus interface. 1.6.2.4 escc2 with 80386 or sab-r3000 (mips) in high-performance 32-bit systems based on 80386 or sab-r3000 microprocessors a separate control logic (e.g. sequencer pals) is normally provided to generate all necessary control signals for interfacing to i/o devices. address and data lines are buffered via latches or transceivers.
sab 82532/saf 82532 introduction semiconductor group 30 07.96 1.6.2.5 escc2 with mc 68008 figure 9 gives an overview for connecting the escc2 to the motorola type microprocessor mc 68008. interfacing is very simple because most lines can be connected directly. figure 9 escc2 with mc 68008
sab 82532/saf 82532 introduction semiconductor group 31 07.96 1.6.2.6 escc2 with mc 68000, 68010, 68012 in these 16-bit systems the integration of some additional glue logic is necessary (refer to figure 10 ). the reason is that these microprocessors provide two different data strobe signals for low byte/high byte access and word/byte access via the data bus (no address line a0). note: the propagation delay of the selected and gate has to be high enough to guarantee the specified address setup times. figure 10 escc2 with mc 68010
sab 82532/saf 82532 introduction semiconductor group 32 07.96 1.6.2.7 escc2 with mc 68020, 68030 figure 11 gives an example of interfacing to a 32-bit motorola microprocessor. as for mc 68000, 68010 and 68012 microprocessors, some glue logic is necessary, too. the signal bus low enable ( ble) has to be decoded out of transfer size information (siz0, 1) and a0. the escc2 interface logic has to respond as a 16-bit peripheral (dsack1 ,0=01 h ) during register access and interrupt acknowledge cycles. figure 11 escc2 with mc 68020
sab 82532/saf 82532 introduction semiconductor group 33 07.96 1.6.2.8 interrupt cascading the escc2 supports two cascading schemes which can be selected by programming the ipc register: slave mode interrupt outputs of several devices (slaves) are connected to a priority resolving unit (e.g. interrupt controller). the slave which is selected for the interrupt service routine is addressed via special address lines during the interrupt acknowledge cycle. for this application the escc2 offers two interrupt enable inputs (ie0, ie1) and a programmable 2-bit slave id. figure 12 interrupt cascading (slave mode) in intel bus mode for intel type microprocessor systems the 2-cycle interrupt acknowledge scheme is supported (86 mode).
sab 82532/saf 82532 introduction semiconductor group 34 07.96 figure 13 interrupt cascading (slave mode) in motorola bus mode
sab 82532/saf 82532 introduction semiconductor group 35 07.96 daisy chaining if selected via ipc register the interrupt enable pins ie0, ie1 are used for building a daisy chain by connecting the interrupt enable output (ie0) of the higher priority device to the interrupt enable input (ie1) of the lower priority device. the highest priority device has ie1 pulled high (refer to figure 14 and 15 ). figure 14 interrupt cascading (daisy chaining) in intel bus mode for intel type microprocessor systems the 2-cycle interrupt acknowledge scheme is supported (86 mode). maximum available settling time for the chain: from the beginning of the first inta cycle to the beginning of the second.
sab 82532/saf 82532 introduction semiconductor group 36 07.96 figure 15 interrupt cascading (daisy chaining) in motorola bus mode for motorola type microprocessor systems the maximum available settling time for the chain is much shorter: from the beginning of the inta cycle to the falling edge of signal ds.
sab 82532/saf 82532 basic functional principles semiconductor group 37 07.96 2 basic functional principles 2.1 general the escc2 distinguishes itself from other communication controllers by its advanced characteristics. the most important are: C support of hdlc, sdlc, bisync/monosync and asynchronous protocols C support of layer-2 functions (hdlc mode) in addition to those bit-oriented functions commonly supported by hdlc controllers, such as bit stuffing, crc check, flag and address recognition, the escc2 provides a high degree of procedural support. C in a special operating mode (auto-mode), the escc2 processes the information transfer and the procedure handshaking (i- and s-frames of hdlc protocol) autonomously. the only restriction is that the window size (= number of outstanding unacknowledged frames) is limited to 1, which is sufficient for many applications. the communication procedures are mainly processed between the communication controllers and not between the attached processors. thus the dynamic load on the cpu and the software expense is greatly reduced. C the cpu is informed about the status of the procedure and has mainly to manage the receive and transmit data. in order to maintain cost effectiveness and flexibility, the handling of unnumbered (u) frames, and special functions such as error recovery in case of protocol errors, are not implemented in hardware and must be done by the users software. C extended support of different link configurations besides the point-to-point configurations, the escc2 allows the implementation of point-to-multipoint or multi-master configurations without additional hardware or software expense. in point-to-multipoint configurations, the escc2 can be used as a master or as a slave station. even when working as slave station, the escc2 can initiate the transmission of data at any time. an internal function block provides means of idle and collision detection and collision resolution, which are necessary if several stations start transmitting simultaneously. thus, a multi-master configuration is also possible.
sab 82532/saf 82532 basic functional principles semiconductor group 38 07.96 C telecom specific features in a special operating mode, the escc2 can transmit or receive data packets in one of up to 64 time-slots of programmable width (clock mode 5). furthermore, the escc2 can transmit or receive variable data portions within a defined window of one or more clock cycles in conjunction with an external strobe signal (clock mode 1). these features make the escc2 suitable for applications using time division multiplex methods, such as time-slot oriented pcm systems or systems designed for packet switching. C fifo buffers for efficient transfer of data packets a further speciality of escc2 are the 64 byte deep fifo buffers used for the temporary storage of data packets transferred between the serial communications interface and the parallel system bus. because of the overlapping input/output operation (dual-port behaviour), the maximum message length is not limited by the size of the buffer. the dynamic load of the cpu is drastically reduced by transferring the data packets block by block via direct memory access supported by the escc2. the cpu only has to initiate the data transmission by the escc2 and determine the status in case of completed reception, but is not involved in data transfers. C the 16-bit wide microprocessor interface enables high data throughput and offers a high flexibility for connection to both 8/16-bit siemens/intel and motorola type microprocessor systems. moreover, interrupt driven systems are supported by vectorized interrupts and interrupt cascading capabilities.
sab 82532/saf 82532 basic functional principles semiconductor group 39 07.96 link configurations figure 16a point-to-point configuration figure 16b point-to-multipoint configuration figure 16c multimaster configuration
sab 82532/saf 82532 basic functional principles semiconductor group 40 07.96 2.2 fifo structure in both transmit and receive direction 64-byte deep fifos are provided for the intermediate storage of data between the serial interface and the cpu interface. the fifos are divided into two halves of 32-bytes. only one half is accessible to the cpu or dma controller at any time. organization of the fifos and access to their contents depends on the selected serial mode. for detailed information, refer to description of rfifo and xfifo in chapters 10.1 , 10.2 and 10.3 . in case 16-bit data bus width is selected by fixing pin width to logical 1 word access to the fifos is enabled. data output to bus lines d0 d15 as a function of the selected interface mode is shown in figure 20 and 21. of course, byte access is also allowed. the effective length of the accessible part of rfifo can be changed from 32 bytes (reset value) down to 1 (async and bisync mode) or 2 (hdlc mode) bytes. in version 1, only threshold 32 is available in hdlc mode. figure 17 fifo word access (intel mode)
sab 82532/saf 82532 basic functional principles semiconductor group 41 07.96 figure 18 fifo word access (motorola mode)
sab 82532/saf 82532 microprocessor interface semiconductor group 42 07.96 3 microprocessor interface 3.1 register set the communication between the cpu and the escc2 is done via a set of directly accessible registers. the interface may be configured as siemens/intel or motorola type with a selectable data bus width of 8 or 16 bits. the cpu transfers data to/from the escc2 (via 64 byte deep fifos per direction and channel), sets the operating modes, controls function sequences, and gets status information by writing or reading control/status registers. all accesses can be done as byte or word accesses if enabled. if 16-bit bus width is selected, access to lower/upper part of the data bus is determined by address line a0 and signal bhe/ ble as shown in table 1 and 2 . mixed byte/word access to the fifos reading from or writing to the internal fifos (rfifo and xfifo of each channel) can be done using an 8-bit (byte) or 16-bit (word) access depending on the selected bus interface mode. in version 1 of escc2, byte access in the case of 16-bit bus interface mode is allowed if not mixed with word accesses when reading from or writing to the same pool. in version 2.x upward randomly mixed byte/word access to the fifos is allowed with the restriction that in hdlc mode and bisync mode 32 bytes have to be written to the internal fifo when only xtf (hdlc) command or xf (bisync) command is set afterwards. there is no restriction when xtf and xme (hdlc) or xf and xme (bisync) is set afterwards. table 1 data bus access (16-bit intel mode) bhe a0 register access escc2 data pins used 0 0 fifo word access register word access (even addresses) d0 d15 0 1 register byte access (odd addresses) d8 d15 1 0 register byte access (odd addresses) d0 d7 1 1 no transfer performed none
sab 82532/saf 82532 microprocessor interface semiconductor group 43 07.96 the assignment of registers with even/odd addresses to the data lines in case of 16-bit register access depends on the selected microprocessor interface mode: complete information concerning register functions is provided in chapter 10 . the most important functions programmable via these registers are: C setting of serial, operating and clocking modes C layer-2 functions C data transfer modes (interrupt, dma) C bus mode C dpll mode C baud rate generator C test loop. each of the two serial channels of escc2 is controlled via an identical, but totally independent register set (channel a and channel b). functions which are common to or independent from both channels, e.g. interrupt information or universal port programming, are accessible via both register sets, which simplifies software development. table 2 data bus access (16-bit motorola mode) bhe a0 register access escc2 data pins used 0 0 fifo word access register word access (even addresses) d0 d15 0 1 register byte access (odd addresses) d8 d15 1 0 register byte access (odd addresses) d0 d7 1 1 no transfer performed none siemens/intel motorola (adr. n + 1) (adr. n) (adr. n) (adr. n + 1) data lines d15 d8 d7 d0
sab 82532/saf 82532 microprocessor interface semiconductor group 44 07.96 3.2 data transfer modes data transfer between the system memory and the escc2 for both transmit and receive direction is controlled by either interrupts (interrupt mode), or independently from cpu, using the escc2s 4-channel dma interface (dma mode). after reset, the escc2 operates in interrupt mode, where data transfer must be done by the cpu. the user selects the dma mode by setting the dma bit in the xbch register. both channels can be independently operated in either interrupt or dma mode (e.g. channel a: dma, channel b: interrupt). 3.3 interrupt interface special events in the escc2 are indicated by means of a single interrupt output with programmable characteristics (open drain, push-pull; ipc register), which requests the cpu to read status information from the escc2, or, if interrupt mode is selected, to transfer data from/to escc2. since only one int request output is provided, the cause of an interrupt must be determined by the cpu ? by evaluating the interrupt vector which is generated by escc2 during an interrupt acknowledge cycle, and/or ? by reading the escc2s interrupt status registers (gis, isr0, isr1, pis). the structure of the interrupt status registers is shown in figure 19 . figure 19 escc2 interrupt status registers
sab 82532/saf 82532 microprocessor interface semiconductor group 45 07.96 each interrupt indication of registers isr0, isr1 and pis can be selectively masked by setting the corresponding bit in the corresponding mask registers imr0, imr1 and pim. use of these registers depends on the selected serial mode. gis, the non-maskable global interrupt status register serves as pointer to pending channel related interrupts and universal port interrupts. interrupt polling after escc2 has requested an interrupt by activating its int pin, the cpu must first read the global interrupt status register gis to identify registers with active interrupt indications. reading these registers will reset all activated bits and the corresponding indication in gis. if all interrupts are acknowledged (gis is reset), pin int goes inactive. vectorized interrupt structure after escc2 has requested an interrupt by activating its int pin, the system (cpu or peripherals) starts the interrupt acknowledge cycle by activating the inta signal. if the intel bus interface mode is selected, the two-pulse 86 mode is supported. in motorola interface mode single pulse acknowledgement is implemented. interrupt acknowledge operation is determined by the selected interrupt cascading mode (ipc register) in conjunction with the interrupt enable signals ie0 and ie1 (refer to chapter 1.3 , 1.6 , and 10 ): C slave mode the address of the slave under service has to be provided via inputs ie0 and ie1 during the valid inta cycle. interrupt acknowledge is accepted if this address corresponds to the programmed value (ipc register). if the escc2 is used in single device applications (no other device is present for interrupt cascading), ie0 and ie1 have to be fixed to a defined level corresponding to the internally programmed address. C daisy chaining mode ie0 as interrupt enable output and ie1 as interrupt enable input are used to build a daisy chain (refer to chapter 1.6 ). interrupt acknowledge is accepted if ie1 is active during the valid inta cycle. output ie0 follows the ie1 input. additionally, ie0 is reset when int goes active. during inta cycles activation of pin int is prohibited. if interrupt acknowledge is accepted in one of the above modes, the escc2 generates an interrupt vector which is output on d0-d7 of the data bus independent of the selected bus interface mode. all interrupt sources are organized in 8 groups with fixed priority (refer to figure 20 ).
sab 82532/saf 82532 microprocessor interface semiconductor group 46 07.96 figure 20 structure of interrupt vector in case more than one source is active, the generated vector refers to the active group with highest priority (group 1 has highest, group 8 lowest priority). interrupt groups 1 to 6 are assigned to definite single interrupt indications. these are urgent receive and transmit interrupts which need to be serviced quickly. due to this, no read access to interrupt status registers is necessary: the corresponding interrupt indication is reset after the inta cycle has been finished. groups 7 and 8 combine all other interrupt sources. thus, the same procedure as described for interrupt polling has to be used. an interrupt of the universal port can be included in both the interrupt group 7 and the interrupt group 8. if triggered solely, it is assigned to group 7. with the exception of daisy chaining mode where ie1 input directly influences int pin activation/deactivation the int signal is reset when all interrupt indications are cleared (acknowledged).
sab 82532/saf 82532 microprocessor interface semiconductor group 47 07.96 masked interrupts visible in status registers (version 2 upward) the interrupt vector contains only one interrupt at a time: the interrupt displayed in this vector results from a priority resolution among all unmasked active interrupt statuses. the global interrupt status register (gis) points to all interrupt status registers with active interrupt indications. register gis should be evaluated if a pure interrupt polling scheme is used or if interrupt group 7 or 8 is indicated in the generated interrupt vector. in version 1 of escc2 only unmasked interrupt statuses may: C generate an interrupt at pin int, C generate an interrupt vector, C be visible in gis, and C be visible in the interrupt status registers isr0_a b, isr1_a b and pis. masked interrupt statuses are only stored internally and they become visible when the mask is withdrawn. in version 2 upward, an additional mode can be selected via bit ipc:vis. in this mode, masked interrupt status bits still neither generate an interrupt at pin int nor generate an interrupt vector nor are visible in gis, but are displayed in the respective interrupt status register(s) isr0_a..b, isr1_a..b and pis. this mode is useful when some interrupt status bits are to generate an interrupt vector and other status bits are to be polled in the individual interrupt status registers. note 1: in the visible mode, all active interrupt status bits, whether the corresponding actual interrupt is masked or not, are reset when the interrupt status register is read. thus, when polling of some interrupt status bits is desired, care must be taken that unmasked interrupts are not lost in the process. note 2: all unmasked interrupt statuses are treated as before. note 3: please note that whenever polling is used, all interrupt status registers concerned have to be polled individually (no hierarchical polling possible), since gis only contains information on actually generated C i.e. unmasked interrupts.
sab 82532/saf 82532 dma interface semiconductor group 48 07.96 4 dma interface the escc2 comprises a 4-channel dma interface for fast and efficient data transfers. for both serial channels, a separate dma request output for transmit (drt) and receive direction (drr) as well as a dma acknowledgement ( dack) input is provided. the escc2 activates the dma request line as long as data transfers are needed from/to the specific fifo (level triggered demand transfer mode of dma controller). it is the responsibility of the dma controller to perform the correct amount of bus cycles. either read cycles will be performed if the dma transfer has been requested from the receiver, or write cycles if dma has been requested from the transmitter. if the dma controller provides a dma acknowledge signal (input to the escc2s dack pin), each bus cycle implicitly selects the top of the specific fifo and neither address (via a0 a6) nor chip select need to be supplied (i/o to memory transfers). if no dack signal is supplied, normal read/write operations (with addresses) must be performed (memory to memory transfers). the escc2 deactivates the dma request line immediately after the last read/write cycle of the data transfer has started. as a very useful feature for single cycle dma transfers, optional inversion of the functions of read/write control lines is implemented. if programmed via register ccr2 C rd and wr are exchanged in intel bus interface mode, Cr/ w is inverted in motorola bus interface mode while dack is active. this allows easy connection to dma controllers without dedicated i/o control lines as shown in figure 21 . figure 21 dma interfacing by using invert mode
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 49 07.96 5 hdlc/sdlc serial mode 5.1 operating modes the hdlc controller of each channel can be programmed to operate in various modes, which are different in the treatment of the hdlc frame in receive direction. thus, the receive data flow and the address recognition features can be performed in a very flexible way, to satisfy almost any practical requirements. there are 6 different operating modes which can be set via the mode register. auto-mode (mode: mds1, mds0 = 00) characteristics: window size 1, random message length, address recognition. the escc2 processes autonomously all numbered frames (s-, i-frames) of an hdlc protocol. the hdlc control field, data in the i-field of the frames and an additional status byte are temporarily stored in the rfifo. the hdlc control field as well as additional information can also be read from special registers (rhcr, rsta). depending on the selected address mode, the escc2 can perform a 2-byte or 1-byte address recognition. if a 2-byte address field is selected, the high address byte is compared with the fixed value fe h or fc h (group address) as well as with two individually programmable values in rah1 and rah2 registers. according to the isdn lapd protocol, bit 1 of the high byte address will be interpreted as command/response bit (c/r), dependent on the setting of the cri bit in rah1, and will be excluded from the address comparison. similarly, two comparison values can be programmed in special registers (ral1, ral2) for the low address byte. a valid address will be recognized in case the high and low byte of the address field correspond to one of the compare values. thus, the escc2 can be called (addressed) with 6 different address combinations, however, only the logical connection identified through the address combination rah1, ral1 will be processed in the auto-mode, all others in the non auto-mode. hdlc frames with address fields that do not match any of the address combinations, are ignored by the escc2. in the case of a 1-byte address, ral1 and ral2 will be used as comparison registers. according to the x.25 lapb protocol, the value in ral1 will be interpreted as command and the value in ral2 as response. in version 2 and upwards the address bytes can be masked to allow selective broadcast frame recognition. for further information see chapter 5.4.10 .
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 50 07.96 non-auto-mode (mode: mds1, mds0 = 01) characteristics: address recognition, arbitrary window size. all frames with valid addresses (address recognition identical to auto-mode) are forwarded directly via the rfifo to the system memory. the hdlc control field, data in the i-field and an additional status byte are temporarily stored in the rfifo. the hdlc control field and additional information can also be read from special registers (rhcr, rsta). in non-auto-mode, all frames with a valid address are treated similarly. in version 2 upward the address bytes can be masked to allow selective broadcast frame recognition. for further information see chapter 5.4.10 . transparent mode 1 (mode: mds1, mds0, adm = 101) characteristics: address recognition high byte only the high byte of a 2-byte address field will be compared. the address byte is compared with the fixed value fe h or fc h (group address) as well as with two individually programmable values in rah1 and rah2 registers. the whole frame excluding the first address byte will be stored in rfifo. ral1 contains the second and rhcr the third byte following the opening flag. in version 2 upward the address bytes can be masked to allow selective broadcast frame recognition. for further information see chapter 5.4.10 . transparent mode 0 (mode: mds1, mds0, adm = 100) characteristics: no address recognition no address recognition is performed and each frame will be stored in the rfifo. ral1 contains the first and rhcr the second byte following the opening flag. extended transparent modes 0, 1 (mode: mds1, mds0 = 11) characteristics: fully transparent in extended transparent modes, fully transparent data transmission/reception without hdlc framing is performed, i.e. without flag generation/recognition, crc generation/check, or bit stuffing. this allows user specific protocol variations. data transmission is always performed out of the xfifo. in extended transparent mode 0 (adm = 0), data reception is done via the ral1 register, which always contains the current data byte assembled at the rxd pin. in extended transparent mode 1 (adm = 1), the receive data are additionally shifted into the rfifo.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 51 07.96 receive data flow (summary) the following figure gives an overview of the management of the received hdlc frames in the different operating modes. figure 22 receive data flow of escc2
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 52 07.96 transmit data flow two different types of frames can be transmitted: C i-frames and C transparent frames as shown below. figure 23 transmit data flow of escc2 for i-frames (command xif via cmdr register), the address and control fields are generated autonomously by the escc2 and the data in the xfifo is entered into the information field of the frame. this is possible only if the escc2 is operated in the automode. for transparent frames (command xtf via cmdr register), the address and the control fields have to be entered in the xfifo as well. this is possible in all operating modes and used also in auto-mode for sending u-frames. version 2 upward: if ccr3:xcrc is set, the crc checksum will not be generated internally. the checksum has to be provided via the transmit fifo (xfifo) as the last two or four bytes. the transmitted frame will be closed automatically only with a (closing) flag. note: the escc2 does not check whether the length of the frame, i.e. the number of bytes, to be transmitted makes sense or not.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 53 07.96 5.2 procedural support (layer-2 functions) when operating in the auto mode, the escc2 offers a high degree of protocol support. in addition to address recognition, the escc2 autonomously processes all (numbered) s- and i-frames (prerequisite window size 1) with either normal or extended control field format (modulo-8 or modulo-128 sequence numbers C selectable via rah2 register). the following functions will be performed: C updating of transmit and receive counter C evaluation of transmit and receive counter C processing of s commands C flow control with rr/rnr C generation of responses C recognition of protocol errors C transmission of s commands, if acknowledgement is not received C continuous status query of remote station after rnr has been received C programmable timer/repeater functions. in addition, all unnumbered frames are forwarded directly to the processor. the logical link can be initialized by software at any time (reset hdlc receiver, rhr command). additional logical connections can be operated in parallel by software. 5.2.1 full-duplex lapb/lapd operation initially (i.e. after reset), the lap controllers of the two serial channels are configured to function as a combined (primary/secondary) station, where they autonomously perform a subset of the balanced x.25 lapb/isdn lapd protocol. reception of frames the logical processing of received s-frames is performed by the escc2 without interrupting the cpu. the cpu is merely informed by interrupt of status changes in the remote station (receiver ready / receiver not ready) and protocol errors (unacceptable n(r), or s-frame with i field). i-frames are also processed autonomously and checked for protocol errors. the i-frame will not be accepted in the case of sequence errors (no interrupt is forwarded to the cpu), but is immediately confirmed by an s-response. if the cpu sets the escc2 into a receive not ready status, an i-frame will not be accepted (no interrupt) and an rnr response is transmitted. u-frames are always stored in the rfifo and forwarded directly to the cpu. the logical sequence and the reception of a frame in auto mode is illustrated in figure 24. note: the state variables n(s), n(r) are evaluated within the window size 1, i.e. the escc2 checks only the least significant bit of the receive and transmit counter regardless of the selected modulo count.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 54 07.96 figure 24 processing of received frames in auto mode
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 55 07.96 transmission of frames the escc2 autonomously transmits s commands and s responses in the auto mode. either transparent or i-frames can be transmitted by the user. the software timer has to be operated in the internal timer mode to transmit i-frames. after the frame has been transmitted, the timer is self-started, the xfifo is inhibited, and the escc2 waits for the arrival of a positive acknowledgement. this acknowledgement can be provided by means of an s- or i-frame. if no positive acknowledgement is received during time t 1 , the escc2 transmits an s-command (p = 1), which must be answered by an s-response (f = 1). if the s-response is not received, the process is performed n1 times (in hdlc known as n2, refer to register timr). upon the arrival of an acknowledgement or after the completion of this poll procedure the xfifo is enabled and an interrupt is generated. interrupts may be triggered by the following: ? message has been positively acknowledged (alls interrupt) ? message must be repeated (xmr interrupt) ? response has not been received (tin interrupt). additionally, xpr interrupts are generated which indicate that new data can be written to the xfifo. using xpr enables high data rates, e.g. in conjunction with back-to-back frames or shared flags. in automode, however, only when the alls interrupt has been issued data of a new frame may be written to the xfifo! upon arrival of an rnr frame, the software timer is started and the status of the remote station is polled periodically after expiration of t 1 , until the status receive ready has been detected. the user is informed via the appropriate interrupt. if no response is received after n1 times, a tin interrupt, and t 1 clock periods thereafter an alls interrupt is generated and the process is terminated. note: the internal timer mode should only be used in the auto mode. transparent frames can be transmitted in all operating modes. after the transmission of a transparent frame the xfifo is immediately released, which is confirmed by interrupt (xpr). in this case, time monitoring can be performed with the timer in the external timer mode.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 56 07.96 figure 25 timer procedure/poll cycle
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 57 07.96 examples the interaction between escc2 and the cpu during transmission and reception of i-frames is illustrated in figure 26a , the flow control with rr/rnr during reception of i-frames in figure 26b , and during transmission of i-frames in figure 27a . both, the sequence of the poll cycle and protocol errors are shown in figure 27b . figure 26a figure 26b transmission/reception i-frames flow control/transmission figure 27a figure 27b flow control/reception s-commands/protocol error
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 58 07.96 5.2.2 half-duplex sdlc-nrm operation the lap controllers of the two serial channels can be configured to function in a half-duplex normal response mode (nrm), where they operate as a slave (secondary) station, by setting the nrm bit in the xbch register of the corresponding channel. in contrast to the full-duplex lap b/lap d operation, where the combined (primary + secondary) station transmits both commands and responses and may transmit data at any time, the nrm mode allows only responses to be transmitted and the secondary station may transmit only when instructed to do so by the master (primary) station. the escc2 gets the permission to transmit from the primary station via an s-, or i-frame with the poll bit (p) set . the nrm mode can be profitably used in a point-to-multipoint configuration with a fixed master-slave relationship, which guarantees the absence of collisions on the common transmit line. it is the responsibility of the master station to poll the slaves periodically and to handle error situations. prerequisite for nrm operation is: C auto mode with 8-bit address field selected mode: mds1, mds0, adm = 000 C external timer mode mode: tmd = 0 C same transmit and receive addresses, since only responses can be transmitted, i.e. xad1 = xad2 = ral1 = ral2 (address of secondary). note: the broadcast address may be programmed in ral2 if broadcasting is required. in this case ral1 and ral2 are not equal. the primary station has to operate in transparent sdlc mode.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 59 07.96 reception of frames the reception of frames functions similarly to the lapb/lapd operation (see chapter 5.2.1 ). transmission of frames the escc2 does not transmit s-, or i-frames if not instructed to do so by the primary station via an s-, or i-frame with the poll bit set. the escc2 can be prepared to send an i-frame by the cpu by issuing an xif command (via cmdr) at any time. the transmission of the frame, however, will not be initiated by the escc2 until reception of either an ? rr, or ? i-frame with a poll bit set (p = 1). after the frame has been transmitted (with the final bit set), the xfifo is inhibited and the escc2 waits for the arrival of a positive acknowledgement. since the on-chip timer of the escc2 must be operated in the external mode (a secondary may not poll the primary for acknowledgements), timer supervision must be done by the primary station. upon the arrival of an acknowledgement the xfifo is enabled and an interrupt is forwarded to the cpu, either the C message has been positively acknowledged (alls interrupt), or the C message must be repeated (xmr interrupt). additionally, the timer can be used under cpu control to provide timer recovery of the secondary if no acknowledgements are received at all. note: the transmission of transparent frames is only possible if the permission to send is given by an s-frame (p = 1) or i-frame.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 60 07.96 examples a few examples of escc2/cpu interaction in the case of nrm mode are shown in figure 28a to figure 29b . figure 28a figure 28b no data to send data reception/transmission figure 29a figure 29b data transmission (no error) data transmission (error)
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 61 07.96 5.2.3 error handling depending on the error type, erroneous frames are handled according to table 3 . note: the station variables ( v(s), v(r) ) are not changed. 5.3 sdlc loop as a special variant of ibms sdlc protocol the sdlc loop is used to connect several secondary (= slave) stations to one primary (= master) station. different from standard hdlc, a reserved bit sequence is defined as end of poll sequence (eop = one 0 bit, followed by at least 7 1 bits). note that in standard hdlc this sequence is defined as abort sequence, therefore with sdlc loop frame abortion is not available. the escc2 facilitates entering and leaving the loop. in contrast to the protocol support described above, autonomous processing of s- and i-frames is not implemented by the circuit but is left to software. prerequisite for correct operation is ? sdlc loop mode enabled (register ccr0) ? normal response mode selected (xbch:nrm = 1) ? non-auto-mode or transparent mode with 8-bit address field selected ? external timer mode ? nrz or nrzi data encoding enabled (register ccr0); no bus configuration ? rxclk = txclk ? interframe timefill = flags table 3 error handling frame type error type generated response generated interrupt rec. status i crc error aborted unexpec. n(s) unexpec. n(r) C C s-frame C rme rme C pce crc error abort C C s crc error aborted unexpec. n(r) with i-field C C C C C C pce pce C C C C
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 62 07.96 figure 30 sdlc loop the loop is formed by connecting txd output of one station to the rxd input of the next one (refer to figure 30 ). this configuration is physically a loop, but logically a point-to-multipoint configuration. in every secondary station data flow from rxd to txd is handled depending on secondarys current state as follows: ? initially, rxd and txd are connected together with gate delay ( off loop state). data sent out from the primary is passed on by every secondary to the next one. thus, data is transparent to all secondaries. ? after reception of an eop sequence a secondary can go to the on loop state. as opposed to the off loop state, all data is forwarded to the next station with one bit delay. ? if a secondary is requested (polled) by the primary to transmit data or responses, it has to wait for reception of a further eop sequence. by flipping the seventh 1 of the eop sequence to 0 it generates a flag sequence and consequently all following secondary stations are inhibited from sending. simultaneously, rxd is disconnected from txd and transmission of a frame (or several frames) may start ( active on loop state). after terminating transmission the station reconnects rxd to txd. thus, an eop sequence is formed and another station may start data transmission. processing the eop sequences is handled automatically by the escc2: commands (glp, galp in register ccr1) and state indications (interrupts eop, olp, aolp in register isr1) are provided to control and monitor the state of the escc2 as secondary station.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 63 07.96 figure 31 shows the state diagram for the secondary. note that in order to be able to hold active on loop state flags has to be selected as interframe time fill, as opposed to idle. note: the primary station has to operate in standard sdlc mode. figure 31 state diagram of sdlc loop/secondary reception of frames sdlc loop as special variant of the sdlc protocol works in half-duplex normal response mode, that means that data transmission and data reception at the same time is not permitted. normally, data reception is only possible in the on loop state. the escc2, however, allows data reception in every state. activation/deactivation of the receiver is effected by the user by programming the rac bit in register mode. transmission of frames sending frames is only possible in the active on loop state. here, transmission can start with the xtf command. if necessary, flags as interframe timefill are inserted before the current frame begins (the modified eop and the first flag may share a 0). after finishing frame transmission, flags as interframe timefill are again sent until the go active on loop command (galp) is reset. by returning to on loop state an eop sequence is formed, the transmitter is disabled and rxd is connected to txd again with one bit delay. note: xtf or xif may be issued before the active on loop state is reached. in this case, transmission starts immediately after entering the active on loop state. the opening flag of the first frame is sent out immediately following after the modified eop sequence (both may share a 0).
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 64 07.96 5.4 special functions 5.4.1 shared flags the closing flag of a previously transmitted frame simultaneously becomes the opening flag of the following frame if there is one to be transmitted. the shared flag feature is enabled by setting bit sflg in control register ccr1. 5.4.2 preamble transmission if enabled via register ccr3, a programmable 8-bit pattern (register pre) is transmitted with a selectable number of repetitions after interframe timefill transmission is stopped and a new frame is ready to be sent out. note: zero bit insertion is disabled during preamble transmission. to guarantee correct function the programmed preamble value should be different from receive address byte values defined for any of the connected stations. 5.4.3 crc-32 in hdlc/sdlc mode, error protection is done by crc generation and checking. in standard applications, crc-ccitt algorithm is used. the frame check sequence at the end of each frame consists of two bytes of crc checksum. if required, the crc-ccitt algorithm can be replaced by the crc-32 algorithm, enabled via register ccr2. in this case the frame check sequence consists of four bytes. 5.4.4 extended transparent transmission and reception when programmed in the extended transparent mode via the mode register (mode:mds1, mds0 = 11), each channel of the escc2 performs fully transparent data transmission and reception without hdlc framing, i.e. without ? flag insertion and deletion ? crc generation and checking ? bit stuffing. in order to enable fully transparent data transfer, rac bit in mode has to be reset and ff h has to be written to xad1, xad2 and rah2. data transmission is always performed out of xfifo by directly shifting the contents of xfifo via the serial transmit data pin (txd). transmission is initiated by setting cmdr:xtf (08 h ); end of transmission is indicated by isr1:exe (10 h ). in receive direction, the character last assembled via receive data line (rxd) is available in ral1 register. additionally, in extended transparent mode 1 (mode: mds1, mds0, adm = 111), received data is shifted into rfifo.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 65 07.96 this feature can be profitably used e.g. for: ? user specific protocol variations ? line state monitoring, or ? test purposes, in particular for monitoring or intentionally generating hdlc protocol rule violations (e.g. wrong crc) character or octet boundary synchronization can be achieved by using clock mode 1 with an external receive strobe input to pin cd. 5.4.5 cyclic transmission (fully transparent) if the extended transparent mode is selected, the escc2 supports the continuous transmission of the contents of the transmit fifo. after having written 1 to 32 bytes to xfifo, the command xrep.xtf.xme via the cmdr register (bit 7 0 = 00101010 = 2a h ) forces the escc2 to repeatedly transmit the data stored in xfifo via txd pin. the cyclic transmission continues until a reset command (cmdr: xres) is issued, after which continuous 1s are transmitted. note: in dma mode the command xrep and xtf has to be written to cmdr. 5.4.6 continuous transmission (dma mode only) if data transfer from system memory to the escc2 is done by dma (dma bit in xbch set), the number of bytes to be transmitted is usually defined via the transmit byte count registers (xbch, xbcl: bits xbc11 xbc0). setting the transmit continuously (xc) bit in xbch, however, the byte count value is ignored and the dma interface of escc2 will continuously request for transmit data any time 32 new bytes can be entered in xfifo. this feature can be used e.g. to transmit frames of length higher than the byte count specified by xbch, xbcl (frames with more than 4096 bytes). note: if the xc bit is reset during continuous transmission, the transmit byte count becomes valid again, and the escc2 will request the amount of dma transfers programmed via xbc11 xbc0. otherwise, the continuous transmission and the generation of dma requests is stopped when a data underrun condition occurs in xfifo. instead of crc, continuous 1s (idle) are transmitted thereafter.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 66 07.96 5.4.7 receive length check feature the escc2 offers the possibility to supervise the maximum length of received frames and to terminate data reception in case this length is exceeded. this feature is controlled via the special receive length check register (rlcr). the function is enabled by setting the rc (receive check) bit in rlcr and programming the maximum frame length via bits rl6 rl0. the maximum receive length can be determined as a multiple of 32-byte blocks as follows: max_length = (rl + 1) 32 where rl is the value written to rl6 rl0. all frames exceeding this length are treated as if they had been aborted by the remote station, i.e. the cpu is informed via an C rme interrupt, and the C rab bit in rsta register is set. to distinguish this from the case where an abort sequence is indeed received (sent by the remote station), the receive byte count registers rbch, rbcl will contain a value exceeding the maximum receive length (via rl6 rl0) by one or two bytes. 5.4.8 one bit insertion similar to the zero bit insertion (bit stuffing) mechanism, as defined by the hdlc protocol, the escc2 offers a completely new feature of inserting/deleting a one after seven consecutive zeros in the transmit/receive data stream, if the serial channel is operating in a bus configuration. this method is useful if clock recovery is to be performed by dpll. since only nrz data encoding is supported in a bus configuration, there are possibly long sequences without edges in the receive data stream in case of successive 0s received, and the dpll may lose synchronization. using the one bit insertion feature by setting the oin bit in the ccr1 register, however, it is guaranteed that at least after C 5 consecutive 1s a 0 will appear (bit stuffing), and after C 7 consecutive 0s a 1 will appear (one insertion) and thus a correct function of the dpll is ensured. note: as with the bit stuffing, the one insertion is fully transparent to the user, but it is not in accordance with the hdlc protocol, i.e. it can only be applied in proprietary systems using circuits that also implement this function, such as the sab 82525/sab 82526.
sab 82532/saf 82532 hdlc/sdlc serial mode semiconductor group 67 07.96 5.4.9 crc on/off feature (version 2 upward) as an option in non-auto mode or transparent mode 0, the internal handling of received and transmitted crc checksum can be influenced via control bits ccr3:rcrc and ccr3:xcrc. receive direction: the received crc checksum is always assumed to be in the 2 (crc-ccitt) or 4 (crc-32) last bytes of a frame, immediately preceding a closing flag. in the version 1 of escc2 a check is performed on the crc but the received crc bytes are not transferred to the rfifo. in version 2 upwards, if ccr3:rcrc is set, the received crc checksum will be written to rfifo where it precedes the frame status byte (contents of register rsta). the received crc checksum is additionally checked for correctness. if non-auto mode is selected, the limits for valid frame check are modified (refer to description of bit rsta:vfr). transmit direction: if ccr3:xcrc is set, the crc checksum is not generated internally. the checksum has to be provided via the transmit fifo (xfifo) as the last two or four bytes. the transmitted frame will only be closed automatically with a (closing) flag. note: the escc2 does not check whether the length of the frame, i.e. the number of bytes, to be transmitted makes sense or not. 5.4.10 receive address handling (version 2 upward) mask for address detection the receive address low/high byte (ral1/rah1) can be masked by setting the corresponding bits in the mask registers (aml/amh) to allow extended broadcast address recognition. this feature is applicable to all operating modes with address recognition (auto mode, non-auto mode and transparent mode 1). it is disabled if all bits of registers aml and amh are set to zero (reset value). the function of ral2/rah2 and detection of the fixed group address fe h or fc h if applicable to the selected operating mode remain unchanged. note: as a very useful option, the detected receive address can be pushed to rfifo (ccr3:radd). receive address pushed to rfifo as an option in the auto mode, non-auto mode and transparent mode 1, the address field of received frames can be pushed to rfifo (first one/two bytes of the frame). this function is especially useful in conjunction with the extended broadcast address recognition. it is enabled by setting control bit ccr3:radd. note: in this case the ratio of receive frequency ( f r ) to transmit frequency ( f x ) and to master clock frequency ( f m ) must fulfill: f r / f x < 1.5 (normal operation), f r / f m < 1.5 (master clock operation).
sab 82532/saf 82532 asynchronous serial mode semiconductor group 68 07.96 6 asynchronous serial mode 6.1 character frame character framing is achieved by special start and stop bits. each data character is preceded by one start bit and terminated by one or two stop bits. the character length is selectable from 5 up to 8 bits. optionally, a parity bit can be added which complements the number of ones to an even or odd quantity (even/odd parity). the parity bit can also be programmed to have a fixed value (mark or space). figure 32 shows the asynchronous character format. figure 32 asynchronous character frame
sab 82532/saf 82532 asynchronous serial mode semiconductor group 69 07.96 6.2 data reception 6.2.1 operating modes the escc2 offers the flexibility to combine clock modes, data encoding and data sampling in many different ways. however, only definite combinations make sense and are recommended for correct operation: asynchronous mode prerequisites: ? bit clock rate 16 selected (ccr1:bcr = 1) ? clock mode 0, 1, 3b, 4, or 7b selected ? nrz data encoding the receiver which operates with a clock rate equal to 16 times the nominal data bit rate, synchronizes itself to each character by detecting and verifying the start bit. since character length, parity and stop bit length is known, the ensuing valid bits are sampled. oversampling (3 samples) around the nominal bit center in conjunction with majority decision is provided for every received bit (including start bit). the synchronization lasts for one character, the next incoming character causes a new synchronization to be performed. as a result, the demand for high clock accuracy is reduced. two communication stations using the asynchronous procedure are clocked independently, their clocks need not be in phase or locked to exactly the same frequency but, in fact, may differ from one another within a certain range. isochronous mode prerequisites: ? bit clock rate 1 selected (ccr1:bcr = 0) ? clock mode 2, 3a, 6, or 7a (dpll mode) has to be used in conjunction with fm0, fm1 or manchester encoding. the isochronous mode uses the asynchronous character format. however, each data bit is only sampled once (no oversampling). in clock modes 0 and 1, the input clock has to be externally phase locked to the data stream. this mode allows much higher transfer rates. clock modes 3b, 4 and 7b are not recommended due to difficulties with bit synchronization when using the internal baud rate generator. in clock modes 2, 3a, 6, and 7a, clock recovery is provided by the internal dpll. correct synchronization of the dpll is achieved if there are enough edges within the data stream, which is generally ensured only if bi-phase encoding (fm0, fm1 or manchester) is used.
sab 82532/saf 82532 asynchronous serial mode semiconductor group 70 07.96 6.2.2 storage of data if the receiver is enabled, received data is stored in rfifo (the lsb is received first). moreover, the cd input may be used to control data reception. character length, number of stop bits and the optional parity bit are checked. storage of parity bits can be disabled. errors are indicated via interrupts. additionally, the character error status (framing and parity) can optionally be stored in the rfifo (refer to chapter 10.1.2 ). filling of the accessible part of rfifo is controlled by ? a programmable threshold level ? detection of the programmable termination character (optional). additionally, the time-out condition as optional status information indicates that a certain time (refer to register isr0) has elapsed since the reception of the last character. 6.3 data transmission the selection of asynchronous or isochronous operation has no further influence on the transmitter. the bit clock rate is solely a dividing factor for the selected clock source. transmission of the contents of xfifo starts after the xf command is issued (the lsb is sent out first). further data is requested by interrupt (xpr) or dma. the character frame for each character, consisting of start bit, the character itself with defined character length, optionally generated parity bit and stop bit(s) is assembled. after finishing transmission (indicated by the all sent interrupt), idle (logical 1) is transmitted on txd. additionally, the cts signal may be used to control data transmission. 6.4 special features 6.4.1 break detection/generation break generation: on issuing the xbrk command (register dafo), the txd pin is immediately forced to physical 0 level with the first following clock edge, and released with the first clock edge after this command has been reset. break detection: the escc2 recognizes the break condition upon receiving consecutive (physical) 0s for the defined character length, the optional parity and the selected number of stop bits (zero character and framing error). the zero character is not pushed to rfifo. if enabled, the brk interrupt is generated. the break condition will be present until a 1 is received which is indicated by the break terminated interrupt (brkt).
sab 82532/saf 82532 asynchronous serial mode semiconductor group 71 07.96 6.4.2 flow control by xon/xoff (version 2 upward) programmable xon and xoff two eight-bit control registers (xon, xoff) contain the programmable values for xon and xoff characters. the number of significant bits in a register is determined by the programmed character length (right justified). two programmable eight-bit registers mxn and mxf serve as mask registers for the characters in xon and xoff, respectively: a 1 in a mask register has the effect that no comparison is performed between the corresponding bits in the received characters (dont cares) and the xon and the xoff register. at reset, the mask registers are zeroed, i.e. all bit positions are compared. a received character is considered to be recognized as a valid xon or xoff character C if it is correctly framed (correct length), C if its bits match the ones in the xon or xoff registers over the programmed character length, C if it has correct parity (if applicable). received xon and xoff characters are always stored in the receive fifo, as any other characters. in-band flow control of transmitted characters recognition of an xon or an xoff character causes always a corresponding maskable interrupt status to be generated (isr1:xon / imr1:xon; isr1:xoff / imr1:xoff). further action depends on the setting of a control bit mode:flon (flow control on): 0: no further action is automatically taken by the escc2. 1: the reception of an xoff character automatically turns off the transmitter after the currently transmitted character (if any) has been completely shifted out (xoff state). the reception of an xon character automatically makes the transmitter resume transmitting (xon state). after hardware reset, bit mode:flon is at 0. when bit mode:flon is made to go from 0 to 1, the transmitter is first in the xon state, until an xoff character is received. when bit mode:flon is made to go from 1 to 0, the transmitter always goes in the xon state, and transmission is only controlled by the user and by the cts input. the in-band flow control of the transmitter via received xon and xoff characters can be combined with control via cts pin, i.e. the effect of the cts pin is independent of whether in-band control is used or not. the transmitter is enabled only if cts is low and xon state has been reached.
sab 82532/saf 82532 asynchronous serial mode semiconductor group 72 07.96 transmitter status bit the status bit flow control status (star:fcs) indicates the current state of the transmitter, as follows: 0: if the transmitter is in xon state, 1: if the transmitter is in xoff state. note: the transmitter cannot be turned off by software without disrupting data possibly remaining in the xfifo. flow control for received data after writing a character value to register tic (transmit immediate character) its contents are inserted in the outgoing character stream ? immediately upon writing this register by the microprocessor if the transmitter is in idle state. if no further characters (xfifo contents) are to be transmitted, i.e. the transmitter returns to idle state after transmission of tic, an alls (all sent) interrupt will be generated. ? after the end of a character currently being transmitted if the transmitter is not in idle state. this does not affect the contents of the xfifo. transmission of characters from xfifo is resumed after the contents of register tic are shifted out. transmission via this register is possible even when the transmitter is in xoff state (however, cts must be low). the tic register is an eight-bit register. the number of significant bits is determined by the programmed character length (right justified). parity value (if programmed) and selected number of stop bits are automatically appended, similar to the characters written in the xfifo. the usage of tic is independent of flow control, i.e. is not affected by bit mode:flon. to control access to register tic, an additional status bit star:tec (tic executing) is implemented which signals that transmission command of currently programmed tic is accepted but not completely executed. further access to register tic is only allowed if bit star:tec is 0. 6.4.3 selectable out-of-band flow control for transmitter and receiver (v3.x) transmitter the transmitter output is enabled if cts signal is low or the recognition of the xon characters (if mode:flon = 1). if the mode:flon = 0, then the transmitter is only enabled when the cts signal is low. setting the mode:fcts = 1 allows the transmitter to send data independent of the condition of the cts signal, the in-band flow control (xon/xoff) method would still be operational if mode:flon = 1.
sab 82532/saf 82532 asynchronous serial mode semiconductor group 73 07.96 receiver for some applications it is desirable to provide means of out-of-band flow control to indicate to the far end transmitter that the local receivers buffer is getting full. this flow control can be used between two dtes as shown in figure 33 and between a dte and a dce (modem) as shown in figure 34 that supports this kind of bi-directional flow control. setting mode:frts = 1 and mode:rts = 0 invokes this out-of-band flow control for the receiver. when the shadow part of rfifo has reached a set threshold of 28 bytes, the rts signal is forced inactive (high). when the shadow part of the rfifo is empty, the rts is re-asserted (low). note that the data is immediately transferred from the shadow rfifo to the user accessible rfifo (as long as there is space available). so when the shadow rfifo reaches 28 bytes threshold, there is 4 more byte storage available before overflow can occur. this allows sufficient time for the far end transmitter to react to the change in the rts signal and stop sending more data. figure 33 shows the connection between two escc2 version 3.2 devices as dtes. the rts a of dte a (escc2) feeds the cts b input of the second dte b (another escc2). for example while dte a is receiving data and its receiver rfifo threshold is reached, the rts a signal goes in-active high forcing the cts b to become in-active indicating to dte b to stop transmitting. both dte devices should also be using the cts signal to flow control their transmitters. when the shadow rfifo in dte a is cleared the rts a goes active low and this signals the far end to resume transmission. data flow control from dte b to dte a works in a similar way. figure 33 out-of-band dte-dte bi-directional flow control
sab 82532/saf 82532 asynchronous serial mode semiconductor group 74 07.96 figure 34 shows an escc2 as a dte connected to a dce (modem equipment). the rts a feeds the rts b input of the dce (modem equipment) that supports bi-directional flow control. so when the dte a s receiver threshold is reached, the rts a signal goes active high which is sensed by the dce and it stops transmitting. similarly if the dces receiver threshold is reached, it deactivates the cts b (high) and causes the dte to stop transmitting. these type of dces have fairly deep buffers to ensure that it can continue to receive data from the line even though it is unable to pass the data to the dte for short periods of time. note that a escc2 (version 3.2) can also be used in the dce equipment as shown. exchange of signals (e.g. rts to cts) is necessary inside the dce equipment. figure 34 out-of-band dte-dce bi-directional flow control rts and cts are used to indicate when the local receivers buffer is nearly full. this alerts the far end transmitter to stop transmitting. the combination of transmitter and receiver out-of-band control features mentioned above enables data to be exchanged between two devices without software intervention for flow control.
sab 82532/saf 82532 asynchronous serial mode semiconductor group 75 07.96 6.4.4 in-band flow control transparency in async modes an optional in-band flow control is provided with the xon/xoff characters. if mode:flon bit = 1 then the transmitter output is controlled based on recognition of the xon/xoff characters at the receiver. a new optional function disable xon/xoff storage bit (dxs) in the rfc register is used to determine if the received in-band flow control characters (xon/xoff) are to be stored in the rfifo or to be removed from the incoming data stream. setting the control bit rfc:dxs = 1 (in conjunction with mode:flon = 1) causes the xon/xoff received characters to be discarded. normally with rfc/dxs = 0 (and on reset condition) the received xon/xoff characters are stored in the rfifo along with the data. 6.4.5 continuous transmission (dma mode only) if data transfer from system memory to the escc2 is done by dma (dma bit in xbch set), the number of characters to be transmitted is usually defined via the transmit byte count registers (xbch, xbcl: bits xbc11 xbc0). however, if the transmit continuously (xc) bit in xbch is set, the byte count value is ignored and the dma interface of escc2 will continuously request for transmit data any time 32 new characters can be stored in xfifo. note: if the xc bit is reset during continuous transmission, the transmit byte count becomes valid again, and the escc2 will request the amount of dma transfers programmed via xbc11 xbc0. otherwise, the continuous transmission is stopped when a data underrun condition occurs in xfifo, i.e. the dma controller does not transfer further data to escc2. in this case continuous 1s (idle) are transmitted.
sab 82532/saf 82532 character oriented serial mode (monosync/bisync) semiconductor group 76 07.96 7 character oriented serial mode (monosync/bisync) 7.1 data frame character oriented protocols achieve synchronization between transmitting and receiving station by means of special syn characters. two examples are the monosync and ibms bisync procedures. bisync has two starting syn characters while monosync uses only one syn. figure 35 gives an example of the message format. figure 35 bisync message format the syn character, its length, the length of data characters and additional parity are programmable: ? 1 syn with 6 or 8 bit length (monosync), programmable via register synl. ? 2 syn with 6 or 8 bit length each (bisync), programmable via registers synl and synh. ? data character length may vary from 5 to 8 bits. ? parity information (even/odd parity, mark, space) may be appended to the character.
sab 82532/saf 82532 character oriented serial mode (monosync/bisync) semiconductor group 77 07.96 7.2 data reception the receiver is generally activated by setting the rac bit in the mode register. additionally, the cd signal may be used to control data reception. after issuing the hunt command, the receiver monitors the incoming data stream for the presence of specified syn character(s). however, data reception is still disabled. if synchronization is gained by detecting the syn character(s), scd interrupt is generated and all data is pushed to rfifo, i.e. control sequences, data characters and optional crc frame checking sequence (the lsb is received first). in normal operation, syn characters are excluded from storage to rfifo. syn character length can be specified independently of the selected data character length. if required, the character parity bit and/or parity status is fifoed together with each data byte. as an option, the loading of syn characters in rfifo may be enabled by setting the sload bit in register rfc. note that in this case syn characters are treated as data. consequently, for correct operation it must be guaranteed that syn character length equals the character length + optional parity bit. this is the users responsibility. filling of the accessible part of rfifo is controlled by a programmable threshold level. rfifo read is requested by interrupt (rpf) or dma. reception is stopped if 1. the receiver is deactivated by resetting the rac bit, or 2. the cd signal goes inactive (if carrier detect auto start is enabled), or 3. the hunt command is issued again, or 4. the receiver reset command (rres) is issued, or 5. a programmed termination character has been found (optional). on actions 1. and 2., reception remains disabled until the receiver is activated again. after this is done, and generally in cases 3. and 4., the receiver returns to the (non-synchronized) hunt state. in case 5. a hunt command has to be issued. reception of data is internally disabled until synchronization is regained. note: further checking of frame length, extraction of text or data information and verifying the frame checking sequence (e.g. crc) has to be done by the microprocessor.
sab 82532/saf 82532 character oriented serial mode (monosync/bisync) semiconductor group 78 07.96 7.3 data transmission transmission of data written to xfifo is initiated after the transmit frame command (xf) is issued (the lsb is sent out first). additionally, the cts signal may be used to control data transmission. further data is requested by interrupt (xpr) or dma. the message frame is assembled by appending all data characters to the specified syn character(s) until transmit message end is detected (xme command in interrupt mode, or, in dma mode, when the number of characters specified in xbch, xbcl have been transferred). internally generated parity information may be added to each character (syn, crc and preamble characters are excluded). if enabled via crc append bit (capp), the internally calculated crc checksum (16 bit) is added to the message frame. selection between crc-16 and crc-ccitt algorithms is provided. for all characters which have to be included into crc calculation, the con flag has to be set to 1. this flag which controls the crc generator is fifoed together with each character. there is no need to modify con for every character loaded if continuous characters are to be either included into or excluded from crc calculation. note: - internally generated syn characters are always excluded from crc calculation, - crc checksum (2 bytes) is sent without parity. the internal crc generator is automatically initialized before transmission of a new frame starts. the initialization value is selectable. after finishing data transmission, interframe timefill (syn characters or idle) is automatically sent.
sab 82532/saf 82532 character oriented serial mode (monosync/bisync) semiconductor group 79 07.96 7.4 special functions 7.4.1 preamble transmission if enabled via register ccr3, a programmable 8-bit pattern (register pre) is transmitted with a selectable number of repetitions after interframe timefill transmission is stopped and a new frame is ready to be sent out. note: if the preamble pattern equals the syn pattern, reception is triggered by the preamble. 7.4.2 continuous transmission (dma mode only) if data transfer from system memory to the escc2 is done by dma (dma bit in xbch set), the number of characters to be transmitted is usually defined via the transmit byte count registers (xbch, xbcl: bits xbc11 xbc0). setting the transmit continuously (xc) bit in xbch, however, the byte count value is ignored and the dma interface of escc2 will continuously request for transmit data any time 32 new characters can be entered in xfifo. this feature can be used to transmit frames of length higher than the byte count specified by xbch, xbcl (frames with more than 4095 bytes). note: if the xc bit is reset during continuous transmission, the transmit byte count becomes valid again, and the escc2 will request the amount of dma transfers programmed via xbc11 xbc0. otherwise, the continuous transmission and the generation of dma input requests is stopped when a data underrun condition occurs in xfifo. instead of crc, continuous 1s (idle) are transmitted thereafter. 7.4.3 crc parity inhibit if the internal crc generator is not used for calculation of frame check sequence, an externally calculated checksum (16 bits) can be appended to the message frame without internally generated parity information, although parity is enabled for data characters. prerequisites are: ? crc generator disabled (capp = 0), ? con = 0 for all data characters which are to be included into parity generation (normal operation), ? con = 1 for both bytes defining the crc checksum, ? message end indication has to be issued after the checksum is written to xfifo. the programmed character length has no influence on this function.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 80 07.96 8 serial interface (layer-1 functions) the two serial interfaces of the escc2 provide two fully independent communication channels, supporting layer-1 functions to a high degree by various means of clock generation and clock recovery. note: since the two serial channels are completely independent, the functions described in this document apply to both channels a and b. for simplification purposes the indices a and b will usually be omitted from the signal names, and are implied. 8.1 clock modes the escc2 includes an internal oscillator (osc) as well as independent baud rate generator (brg) and digital phase locked loop (dpll) circuitry for each serial channel. the transmit and receive clock can be generated either ? externally, and supplied via the rxclk and/or txclk pins, or ? internally, by means of the C osc and/or brg, and C dpll, recovering the receive (and optionally transmit) clock from the received data stream. there are a total of 8 different clocking modes programmable via the ccr1 register, providing a wide variety of clock generation and clock pin functions, as shown in table 4 : table 4 overview of clock modes clock type source generation mode receive clock rxclk pins dpll osc brg externally internally 0, 1, 5 2, 3a, 6, 7a 4 3b, 7b transmit clock txclk pins rxclk pins dpll brg ./.16 osc brg externally internally 0a, 2a, 6a 1,5 3a, 7a 2b, 6b 4 0b, 3b, 7b
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 81 07.96 the transmit clock pins (txclk) may also output clock signals in certain clock modes if enabled via ccr2:toe. the clocking source for the dplls is always the internal brg; the scaling factor (divider) of the brg can be programmed through ccr2 and bgr registers between 1, 2, 4, 6 2048. the escc2s system clock is always derived from the transmit clock or from the master clock (if master clock mode is enabled). master clock capabilities a new clock source can be defined as master clock to allow full functionality of the microprocessor interface (access to all status and control registers and fifos, dma and interrupt support) independent from the receive and transmit clocks. this new function (enabled via bit ccr0:mce) is useful for modem applications where continuous generation of the receive and especially of the transmit clock cannot be guaranteed. the master clock has to be supplied via pin xtal1 (or a crystal connected to xtal1 and 2). depending on the version, the maximum clock rate is 10 mhz (sab/saf 82532 n-10 and sab/saf 82532 h-10) or 2 mhz (sab 82532 n and sab 82532 h). note 1: the master clock is applicable to all clock modes except clock mode 5. for details refer to table 5 . note 2: if bus configuration is selected in hdlc/sdlc mode (ccr0:sc2 0), the one-insertion (ccr1:oin) cannot be used in conjunction with the master clock feature. note 3: in sdlc loop mode the master clock option is not available. note 4: the conditions for the ratio between transmit clock, master clock and receive clock frequencies must be fulfilled to guarantee correct function (refer to the notes of table 5). note 5: the internal timers run with the master clock. note 6: the serial interface (transmitter and receiver) are not sequenced by the master clock however the fifos, dma-unit and timer are. clock mode 0 (external clocks) separate, externally generated receive and transmit clocks are supplied to the escc2 via their respective pins. the transmit clock can be directly supplied by pin txclk (mode 0a) or generated by the internal baud rate generator from the clock supplied by pin xtal1 (mode 0b). in the latter case, the transmit clock can be output via pin txclk.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 82 07.96 clock mode 1 (receive/transmit strobes) externally generated, but identical receive and transmit clocks are supplied via rxclk. in addition, a receive strobe can be connected via cd and a transmit strobe via txclk. these strobe signals work on a per bit basis. the operating mode can be applied in time division multiplex applications or for adjusting disparate transmit and receive data rates. note: in extended transparent mode (hdlc/sdlc), the above mentioned strobe signals provide byte synchronization (byte alignment). clock mode 2 (receive clock from dpll) the brg is driven by an external clock (rxclk) and it delivers a reference clock of a frequency equal to 16 times the nominal bit rate for the dpll which in turn generates the receive clock. depending on the programming of the ccr2 register (bit ssel), the transmit clock will be either an external clock signal (txclk) or the clock delivered by the brg divided by 16. in the latter case, the transmit clock can be output via txclk. clock mode 3 (receive and transmit clock from dpll) the brg is fed with an externally generated clock via rxclk. depending on the value of bit ccr2:ssel the brg supplies either the reference clock of frequency equal to 16 times the nominal bit rate for the dpll, which generates both the receive and transmit clock, or, the receive and transmit clock directly. this clock can be output via txclk. clock mode 4 (osc C direct) the receive and transmit clocks are directly supplied by the osc. in addition, this clock can be output via txclk. clock mode 5 (time-slots) this operation mode has been designed for application in time-slot oriented pcm systems. note: clock mode 5 is only specified for versions sab/saf 82532 n-10 and sab/saf 82532 h-10, but not for versions sab 82532 n and sab 82532 h. for correct operation only nrz coding should be used. the received and transmit clock are common for each channel and must be supplied externally via rxclk pin. the escc2 receives and transmits only during certain time-slots C of programmable width (1 256 bit, via rccr and xccr registers), and C of programmable location with respect to a frame synchronization signal (via cd pin). one of up to 64 time-slots can be programmed independently for receive and transmit direction via tsar and tsax registers, and an additional clock shift of 0 7 bits via tsar, tsax and ccr2 register. together with bits xcs0 and rcs0 (lsb of clock
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 83 07.96 shift), located in the ccr2 register, there are 9 bits to determine the location of a time-slot. depending to the value programmed via those bits, the receive/transmit window (time-slot) starts with a delay of 1 (minimum delay) up to 512 clock periods following the frame synchronization signal and is active for the number of clock periods programmed via rccr, xccr (number of bits to be received/transmitted within a time-slot) as shown in figure 36. if bit ccr2:toe is set, the transmit time-slot is indicated by a control signal via txclk, which is set to low during the transmit window. note: in hdlc/sdlc extended transparent modes above windows provide character synchronization (byte aligned). in extended transparent mode the width of the time-slots has to be n 8 bit. in all other modes they can be used to define windows down to a minimum length of one bit. figure 36 location of time-slots
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 84 07.96 clock mode 6 (osc C receive clock from dpll) this clock mode is identical to clock mode 2 except that the clock for the brg is delivered by the osc and must not be supplied externally. clock mode 7 (osc C receive and transmit clock from dpll) similar to clock mode 3, but brg clock is provided by osc. summary the features of the different clock modes are summarized in table 5 . note 1: if async mode is programmed, the baud rate depends on the bit clock rate (1 or 16) selected by bit ccr1:bcr: when bcr is set to 16, oversampling (3 samples) in conjunction with majority decision is performed. bcr has no effect when using clock mode 2, 3a, 6, or 7a. table 5 clock modes of escc2 channel configuration clock sources control sources clock mode ccr1: cm2, cm1,cm0 ccr2: ssel master clock ccr0: mce = 1 brg dpll rec trm cd r- strobe x- strobe frame- sync output via txclk (if ccr2: toe = 1) 0a 0b 1 2a 2b 3a 3b 4 5 6a 6b 7a 7b 0 1 x 0 1 0 1 x x 0 1 0 1 osc osc osc osc osc osc osc osc C osc osc osc osc C osc C rxclk rxclk rxclk rxclk C C osc osc osc osc C C C brg brg brg C C C brg brg brg C rxclk rxclk rxclk dpll dpll dpll brg osc rxclk dpll dpll dpll brg txclk brg rxclk txclk brg/16 dpll brg osc rxclk txclk brg/16 dpll brg cd cd C cd cd cd cd cd C cd cd cd cd C C cd C C C C C (tsar) C C C C C C txclk C C C C C (tsax) C C C C C C C C C C C C cd C C C C C brg C C brg/16 dpll brg osc ts-control C brg/16 dpll brg clock mode receive transmit 0a 0b 1 3b, 7b 4 rxclk/bcr rxclk/bcr rxclk/bcr brg/bcr osc/bcr txclk brg rxclk/bcr brg/bcr osc/bcr
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 85 07.96 note 2: restrictions for frequency ratios between receive frequency ( f r ), transmit frequency ( f x ) and master clock frequency ( f m ): normal mode; clock mode 0, 2a, and 6a: f r / f x < 3 1) master clock mode: f m / f x 3 2.5; f r / f m < 3 1 ) . there are no restrictions on the relative phases of the clocks. the conditions are valid independent of strobe signals or time-slot widths: i.e. in normal mode clock mode 1 always fulfills the condition, irrespective of how receive and transmit data are strobed. thus, by using strobes the above condition may always be fulfilled irrespective of the net data rates. note 3: restrictions for frequency ratios between receive frequency (f r ), transmit frequency (f x ) and master clock frequency (f m ): master clock mode: f r / f m < 3 1 ) non bus configuration: f m / f x > 2.5 in addition: for a given transmit clock f x a master clock f m with at least 1.25 f m periods in the low phase of transmit clock f x has to be provided. bus configuration: f m / f x > 5 in addition: for a given transmit clock f x a master clock f m with at least 2.5 f m periods in the low phase of transmit clock f x has to be provided. example 1: f x = 2 mhz with low/high ratio of 0.25/0.75 => f m = 20 mhz (see figure 37 ) example 2: f x = 4 mhz with low/high ratio of 0.75/0.25 => f m = 13.32 mhz (see figure 38 ) generally, in master clock mode the low/high ratio of transmit clock should be in the range 0.25/0.75 .. 0.75/0.25. there are no restrictions on the relative phases of the clocks. the conditions are valid independent of strobe signals or time-slot widths: i.e. in normal mode clock mode 1 always fulfills the condition, irrespective of how receive and transmit data are strobed. thus, by using strobes the above condition may always be fulfilled irrespective of the net data rates. 1) reduced to 1.5 if receive address is pushed to rfifo in hdlc/sdlc mode.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 86 07.96 figure 37 short low phase of transmit clock for a minimum of 2.5 master clock cycles figure 38 long low phase of transmit clock for a minimum of 2.5 master clock cycles note 4: if one of the clock modes 0b, 4, 6 or 7 or the master clock is selected the internal oscillator (osc) is enabled which allows connection of an external crystal to pins xtal1-xtal2. the output signal of the osc can be used for one serial channel, or for both serial channels (independent baud rate generators and dplls). moreover, xtal1 alone can be used as input for an externally generated clock.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 87 07.96 selectable enhanced resolution baud rate generator (v3.x) two features are provided to allow the escc2 to work with higher xtal rates and support higher transmission baud rates. the first is xtal clock divide-by-4 logic and the second is the enhanced baud rate generator (see also the brg register description). xtal1-2 clock divide-by-4 function may optionally be selected (ccr4:mck4) to feed the core logic and timer blocks. this allows the device to function with xtal frequency up to 33 mhz. the baud rate generator is fed directly from the xtal. it also allows the timer block to operate at the highest resolution. see also description for ccr4 and timr registers. the enhanced baud rate generator has two modes of operation for added flexibility. the normal mode is as in previous versions of the device. for the enhanced mode , the baud rate generator bits br0 br9 are re-assigned to provide two stages of division. the first stage divides the clock by integer number up to 63, whereas the second stage allows further division by powers of 2 (1, 2, 4, 8, 16, 32, 64, , 32768). see also description of the brg register. the appendix shows baud rates derived from typical xtal frequencies using the two modes of the baud rate generator.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 88 07.96 8.2 clock recovery (dpll) the escc2 offers the advantage of recovering the received clock from the received data by means of internal dpll circuitry, thus eliminating the need to transfer additional clock information via the serial link. for this purpose, the dpll is supplied with a reference clock from the brg which is 16 times the nominal data clock rate (clock mode 2, 3a, 6, 7a). the transmit clock may be obtained by dividing the output of the brg by a constant factor of 16 (clock mode 2a, 6a; bit ssel in ccr2 set) or also directly from the dpll (clock mode 3a, 7a). the main task of the dpll is to derive a receive clock and to adjust its phase to the incoming data stream in order to enable optimal bit sampling. the mechanism for clock recovery depends on the selected data encoding (refer to chapter 8.4 ). the following functions have been implemented to facilitate a fast and reliable synchronization: interference rejection and spike filtering in the case where two or more edges appear in the data stream within a time period of 16 reference clocks, these are considered as interference and consequently no additional clock adjustment is performed. phase adjustment in the case where an edge appears in the data stream within the pa fields of the time window, the phase will be adjusted by 1/16 of the data clock. phase shift (nrz, nrzi only) in the case where an edge appears in the data stream within the ps fields of the time window, a second sampling of the bit is forced and the phase is shifted by 180 degrees. note: edges in all other parts of the time window will be ignored. this operation facilitates a fast and reliable synchronization for most common applications. above all, it implies a very fast synchronization because of the phase shift feature: one edge on the received data stream is enough for the dpll to synchronize, thereby eliminating the need for synchronization patterns sometimes called preambles. however, in case of extremely high jitter of the incoming data stream the reliability of the clock recovery cannot be guaranteed. the version 2 of escc2 offers the option to disable the phase shift function for nrz and nrzi encodings by setting bit ccr3:psd. in this case, the pa fields are extended as shown in figure 39b .
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 89 07.96 now, the dpll is more insensitive to high jitter amplitudes but needs more time to reach the optimal sampling position. to ensure correct data sampling preambles should precede the data information. figures 39a, 39b and 40 explain the dpll algorithms used for the different data encodings. figure 39a dpll algorithm for nrz and nrzi coding with phase shift enabled (ccr3:psd = 0) figure 39b dpll algorithm for nrz and nrzi encoding with phase shift disabled (ccr3:psd = 1)
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 90 07.96 figure 40 dpll algorithm for fm0, fm1 and manchester coding to supervise correct function when using bi-phase encoding, a status flag and a maskable interrupt inform about synchronous/asynchronous state of the dpll.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 91 07.96 8.3 bus configuration beside the point-to-point configuration, the escc2 effectively supports point-to-multipoint (pt-mpt, or bus) configurations by means of internal idle and collision detection/collision resolution methods. in a pt-mpt configuration, comprising a central station (master) and several peripheral stations (slaves), or in a multimaster configuration (see figure 16 ), data transmission can be initiated by each station over a common transmit line (bus). in case more than one station attempt to transmit data simultaneously (collision), the bus has to be assigned to one station. C in hdlc/sdlc mode, a collision-resolution procedure is implemented by the escc2. bus assignment is based on a priority mechanism with rotating priorities. this allows each station a bus access within a predetermined maximum time delay (deterministic csma/cd), no matter how many transmitters are connected to the serial bus. C in bisync mode, the collision-resolution is implemented by the microprocessor. C in async mode, a bus configuration is not recommended. prerequisites for bus operation are: ? nrz encoding ? oring of data from every transmitter on the bus (this can be realized as a wired-or, using the txd open drain capability) ? feedback of bus information (cxd input). the bus configuration is selected via the ccr0 register. note: central clock supply for each station is not necessary if both the receive and transmit clock is recovered by the dpll (clock modes 3a, 7a). this minimizes the phase shift between the individual transmit clocks. the bus mode can be operated independently of the clock mode, e.g. also during clock mode 1 (receive and transmit strobe). 8.3.1 bus access procedure the idle state of the bus is identified by eight or more consecutive 1s. when a device starts transmission of a frame, the bus is recognized to be busy by the other devices at the moment the first zero is transmitted (e.g. first zero of the opening flag in hdlc mode). after the frame has been transmitted, the bus becomes available again (idle). note: if the bus is occupied by other transmitters and/or there is no transmit request in the escc2, logical 1 will be continuously transmitted on txd.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 92 07.96 8.3.2 collisions during the transmission, the data transmitted on txd is compared with the data on cxd. in case of a mismatch (1 sent and 0 detected, or vice versa) data transmission is immediately aborted, and idle (logical 1) is transmitted. hdlc/sdlc: transmission will be initiated again by the escc2 as soon as possible if the first part of the frame is still present in the xfifo. if not, an xmr interrupt is generated. since a zero (low) on the bus prevails over a 1 (high impedance) if a wired-or connection is implemented, and since the address fields of the hdlc frames sent by different stations normally differ from one another, the fact that a collision has occurred will be detected prior to or at the latest within the address field. the frame of the transmitter with the highest temporary priority (determined by the address field) is not affected and is transmitted successfully. all other stations cease transmission immediately and return to bus monitoring state. bisync: transmitter and xfifo are reset and pin txd goes to 1. the xmr interrupt is provided which requests the microprocessor to repeat the whole message or block of characters. async: bus configuration not recommended. note: if a wired-or connection has been realized by an external pull-up resistor without decoupling, the data output (txd) can be used as an open drain output and connected directly to the cxd input. for correct identification as to which frame is aborted and thus has to be repeated after an xmr interrupt has occurred, the contents of xfifo have to be unique, i.e. xfifo should not contain data of more than one frame as it could happen when servicing is done after an xpr interrupt. for this purpose the all sent interrupt (isr1:alls) instead of xpr has to be used to trigger the loading of data (for the next frame) into xfifo. 8.3.3 priority (hdlc/sdlc mode only) to ensure that all competing stations are given a fair access to the transmission medium, once a station has successfully completed the transmission of a frame, it is given a lower level of priority. this priority mechanism is based on the requirement that a station may attempt transmitting only when a determined number of consecutive 1s are detected on the bus. normally, a transmission can start when eight consecutive 1s on the bus are detected (through pin cxd). when an hdlc frame has been successfully transmitted, the internal priority class is decreased. thus, in order for the same station to be able to transmit another frame, ten consecutive 1s on the bus must be detected. this guarantees that the transmission requests of other stations are satisfied before the same station is
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 93 07.96 allowed a second bus access. when ten consecutive 1s have been detected, transmission is allowed again and the priority class is increased (to eight 1s). inside a priority class, the order of transmission (individual priority) is based on the hdlc address, as explained in the preceding paragraph. thus, when a collision occurs, it is always the station transmitting the only zero (i.e. all other stations transmit a one) in a bit position of the address field that wins, all other stations cease transmission immediately. 8.3.4 timing modes if a bus configuration has been selected, the escc2 provides two timing modes, differing in the time interval between sending data and evaluation of the transmitted data for collision detection. 1. timing mode 1 (ccr0: sc1, sc0 = 01) data is output with the rising edge of the transmit clock via the txd pin, and evaluated 1/2 a clock period later at the cxd pin with the falling clock edge. 2. timing mode 2 (ccr0: sc1, sc0 = 11) data is output with the falling clock edge and evaluated with the next falling clock edge. thus one complete clock period is available between the instant when data is output and collision detection. 8.3.5 functions of rts output in clock modes 0, 1 and 4, the rts output can be programmed via ccr2 (soc bits) to be active when data (frame or character) is being transmitted. this signal is delayed by one clock period with respect to the data output txd, and marks all data bits that could be transmitted without collision. in this way a configuration may be implemented in which the bus access is resolved on a local basis (collision bus) and where the data are sent one clock period later on a separate transmission line. figure 41 request-to-send in bus operation note: for details on the functions of the rts pin refer to chapter 8.5 .
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 94 07.96 8.4 data encoding the escc2 supports the following coding schemes for serial data: C non-return-to-zero (nrz) C non-return-to-zero-inverted (nrzi) C fm0 (also known as bi-phase space) C fm1 (also known as bi-phase mark) C manchester (also known as bi-phase) nrz: the signal level corresponds to the value of the data bit. by programming bit div (ccr2 register) the escc2 may made to transmit and receive data inverted. nrzi: a logical 0 is indicated by a transition and a logical 1 by no transition at the beginning of the bit cell. figure 42 nrz and nrzi data encoding
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 95 07.96 fm0: an edge occurs at the beginning of every bit cell. a logical 0 has an additional edge in the center of the bit cell, a logical 1 has none. the transmit clock precedes the receive clock by 90 . fm1: an edge occurs at the beginning of every bit cell. a logical 1 has an additional edge in the center of the bit cell, a logical 0 has none. the transmit clock precedes the receive clock by 90 . figure 43 fm0 and fm1 data encoding
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 96 07.96 manchester: in the first half of the bit cell the physical signal level corresponds to the logical value of the data bit. at the center of the bit cell this level is inverted. the transmit clock precedes the receive clock by 90 . the bit cell is shifted by 180 in comparison with fm coding. figure 44 manchester data encoding
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 97 07.96 8.5 modem control functions ( rts/ cts, cd) 8.5.1 rts/ cts handshaking the escc2 provides two pins ( rts, cts) per serial channel supporting the standard rts modem handshaking procedure for transmission control. a transmit request will be indicated by outputting logical 0 on the request-to-send output ( rts). it is also possible to control the rts output by software. after having received the permission to transmit ( cts) the escc2 starts data transmission. hdlc/sdlc and bisync: in the case where permission to transmit is withdrawn in the course of transmission, the frame is aborted and idle is sent. after transmission is enabled again by re-activation of cts, and if the beginning of the frame is still available in the escc2, the frame will be re-transmitted (self-recovery). however, if the permission to transmit is withdrawn after the data in the first xfifo pool has been completely transmitted and the pool is released, the transmitter and the xfifo are reset, the rts output is deactivated and an interrupt (xmr) is generated. note: for correct identification as to which frame is aborted and thus has to be repeated after an xmr interrupt has occurred, the contents of xfifo have to be unique, i.e. xfifo should not contain data of more than one frame, which could happen if transmission of a new frame is started by loading new data in xfifo and issuing a transmit command upon reception of xpr interrupt. for this purpose the all sent interrupt (isr1: alls) instead of xpr has to be used to trigger the loading of data (for the next frame) into xfifo. async: in the case where permission to transmit is withdrawn, transmission of the current character is completed. after that, idle is sent. after transmission is enabled again by re-activation of cts, the next available character is sent out. note: in the case where permission to transmit is not required, the cts input can be connected directly to v ss . additionally, any transition on the cts input pin will generate an interrupt indicated via the isr1 register, if this function is enabled by setting the csc bit in the imr1 register.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 98 07.96 figure 45 rts- cts handshaking beyond this standard rts function, signifying a transmission request of a frame (request to send), the rts output may be programmed for a special function via soc1, soc0 bits in the ccr2 register, provided the serial channel is operating in a bus configuration in clock mode 0 or 1. ? if soc1, soc0 bits are set to 11, the rts output is active (= low) during the reception of a frame. ? if soc1, soc0 bits are set to 10, the rts output function is disabled and the rts pin remains always high. 8.5.2 carrier detect (cd) receiver control similar to the rts/ cts control for the transmitter, the escc2 supports the carrier detect modem control function for the serial receivers if the carrier detect auto start (cas) function is programmed by setting the cas bit in the xbch register. this function is always available in clock modes 0, 2, 3, 4, 6, 7 via the cd pin. in clock mode 1 the cd function is not supported. see table 5 for an overview. if the cas function is selected, the receiver is enabled and data reception is started when the cd input is detected to be high. if cd input is set to low, reception of the current character (byte) is still completed.
sab 82532/saf 82532 serial interface (layer-1 functions) semiconductor group 99 07.96 8.6 test mode to provide for fast and efficient testing, the escc2 can be operated in a test mode by setting the tlp bit in the mode register. the on-chip serial input and output (txd-rxd) are connected, generating a local loopback. as a result, the user can perform a self-test of the escc2. 8.7 universal port a general purpose 8-bit port is provided on pins p0 p7. every pin is separately programmable via the port configuration register pcr to operate as an output or an input. if defined as output, the state of the pin is directly controlled via port value register pvr. a read-back is also provided. if defined as input, the state of the pin is monitored. the value is readable via pvr. all changes may be (if desired) indicated via interrupt. assigned registers: port interrupt status register (pis) and port interrupt mask register (pim).
sab 82532/saf 82532 operational description semiconductor group 100 07.96 9 operational description 9.1 reset the escc2 is forced into the reset state if the res pin is set high for at least 5 microseconds. during reset, the escc2 is temporarily in the power-up mode, and a subset of the registers is initialized with defined values. during hardware reset C all uni-directional output stages are in high-impedance state, C all bi-directional output stages (data bus) are in high-impedance state if signals rd and inta are high, C output xtal2 is high-impedance if input xtal1 is high (the internal oscillator is disabled during reset). after reset, the escc2 is in power-down mode, and the following registers contain defined values: register reset value meaning ccr0 00 h C power-down mode C hdlc-/sdlc mode C nrz coding ccr1 00 h C no shared flags C no sdlc loop function C txd pins are open drain outputs C pt-pt with idle as interframe time fill C clock mode 0 ccr2 00 h C rts pin standard function C read/write exchange disabled C crc-32 disabled C no data inversion ccr3 00 h C no preambles C crc reset level is ffff h C no address to rfifo C no crc-bytes to rfifo C transmit crc off mode 00 h C auto-mode with 1 byte address field C external timer mode, timer resolution: k = 32768 C receiver inactive C rts output controlled by escc2 C no test loop
sab 82532/saf 82532 operational description semiconductor group 101 07.96 imr0 imr1 pim ff h ff h ff h C all interrupts masked ipc 00 h C interrupt pin int is an open drain output C slave cascading mode is enabled C slave address is set to 00 h pcr ff h C all pins of the universal port are inputs iva 00 h C interrupt vector address is set to 00 h pre 00 h C preamble value is set to 00 h xbch 00 h C interrupt controlled data transfer (dma disabled) C full-duplex lapb/lapd operation of lap controller C carrier detect auto start of receiver disabled star 48 h C xfifo write enable C receive line inactive C no commands executing aml/mxn amh/mxf 00 h 00 h C address mask disabled tsax tsar 00 h C time-slot number: 00 h C clock shift (together with ccr2 = 00 h ): 00 h xccr rccr 00 h C 1-bit time-slot register reset value meaning
sab 82532/saf 82532 operational description semiconductor group 102 07.96 9.2 initialization after reset the cpu has to write a minimum set of registers and an optional set dependent on the required features and operating modes. first, the serial mode, the configuration of the serial port and the clock mode have to be defined via the ccr0 and ccr1 registers. the clock mode must be set before power-up (ccr1). the cpu may switch the escc2 between power-up and power-down mode. this has no influence upon the contents of the registers, i.e. the internal state remains stored. in power-down mode however, all internal clocks and the oscillator circuitry are disabled, no interrupts are forwarded to the cpu (interrupts of universal port excluded). this state can be used as a standby mode, when the escc2 is temporarily not used, thus substantially reducing power consumption. the escc2 should usually be initialized in power-down mode. the need for programming further registers depends on the selected features (serial mode, clock mode specific features, operating mode, address mode, user demands). table 6 gives an overview about initialization of the control registers. table 6 initialization of escc2 item registers comment clock mode clock mode specific features ccr0, ccr1 bgr, ccr2 tsar, tsax xccr, rccr for master clock mode for clock modes 2, 3, 4, 6, 7 for clock mode 5 serial mode ccr0 serial port configuration ccr0 ccr1 ccr2 encoding output driver select data inversion, rxd ? txd
sab 82532/saf 82532 operational description semiconductor group 103 07.96 serial mode specific features hdlc/sdlc mode, timr xad1, xad2 rah1, rah2 ral1, ral2 xbch ccr1 ccr2 ccr3 ccr4 pre rlcr refer to table 7 nrm mode shared flags, itf/oin crc32 crc reset level, preamble crc/address-bytes to rfifo rfifo threshold preamble receive length check async ccr1 dafo rfc tcr bit clock rate data format rfifo configuration termination character xon character xoff character bisync mode synl, synh dafo rfc ccr3 pre tcr bi-/mono-sync, slen syn character data format rfifo configuration crc, preamble preamble termination character user demands modem control lines mode, ccr2 xbch rts pins cd pins parallel port pcr port configuration table 6 initialization of escc2 (contd) item registers comment
sab 82532/saf 82532 operational description semiconductor group 104 07.96 interrupt features ipc iva imr0, imr1 pim port configuration, slave addr. cascading mode interrupt vector address interrupt masks dma features xbch ccr2 dma read/write exchange timer (external mode) mode, timr table 7 hdlc specific register setup address mode operating mode 2 byte address field (mode:adm = 1) 1 byte address field (mode:adm = 0) auto rah2 rah2 ral1 ral2 aml amh rah1 set to 00 h C ral1 ral2 aml non auto rah2 rah2 ral1 ral2 aml amh rah1 set to 00 h C ral1 ral2 aml transparent rah1 rah2 amh C C table 6 initialization of escc2 (contd) item registers comment timr xad1 xad2
sab 82532/saf 82532 operational description semiconductor group 105 07.96 9.3 operational phase after having performed the initialization, the cpu switches each individual channel of the escc2 into operational phase by setting the pu bit in the ccr0 register. initially, the cpu should bring the transmitter and receiver into a defined state by issuing a transmitter reset command (cmdr:xres) and a receiver reset command (cmdr:rhr in hdlc/sdlc mode, cmdr:rres in async and bisync mode). if data reception should be performed, the receiver must be activated by setting the bit mode:rac. if no clear to send function is provided via a modem, the cts pin(s) of the escc2 must be connected directly to ground in order to enable data transmission. now the escc2 is ready to transmit and receive data. control of data transfer is mainly done by commands from cpu to escc2 via the cmdr register, and by interrupt indications from escc2 to cpu. additional status information, which does not trigger an interrupt, is available in the star register. 9.3.1 data transmission 9.3.1.1 interrupt mode in transmit direction 2 32 byte fifo buffers (transmit pools) are provided for each channel. after checking the xfifo status by polling the transmit fifo write enable bit (xfw in star register) or after a transmit pool ready (xpr) interrupt, up to 32 bytes may be entered by the cpu into the xfifo. hdlc/sdlc: the transmission of a frame can be started by issuing a xtf or xif command via the cmdr register. if enabled, a specified number of preambles (refer to registers ccr3 and pre) are sent out optionally before transmission of the current frame starts. if the transmit command does not include an end of message indication (cmdr: xme), the escc2 will repeatedly request for the next data block by means of a xpr interrupt as soon as no more than 32 bytes are stored in the xfifo, i.e. a 32-byte pool is accessible to the cpu. this process will be repeated until the cpu indicates the end of message per xme command, after which frame transmission is finished correctly by appending the crc and closing flag sequence. consecutive frames may share a flag (enabled via ccr1:sflg) or may be transmitted as back-to-back frames, if service of xfifo is quick enough. in case no more data is available in the xfifo prior to the arrival of xme, the transmission of the frame is terminated with an abort sequence and the cpu is notified per interrupt (isr1:xdu). the frame may also be aborted per software (cmdr: xres). the data transmission sequence, from the cpus point of view, is outlined in figure 46 .
sab 82532/saf 82532 operational description semiconductor group 106 07.96 async: the transmission of character(s) can be started by issuing a xf command via the cmdr register. the escc2 will repeatedly request for the next data block by means of a xpr interrupt as soon as no more than 32 bytes are stored in the xfifo, i.e. a 32-byte pool is accessible to the cpu. transmission may be aborted per software (cmdr:xres). bisync: the transmission of a block can be started by issuing a xf command via the cmdr register. further handling of data transmission with respect to preamble transmission and command xme is similar to hdlc/sdlc mode. after xme command has been issued, the block is finished by appending the internally generated crc if enabled (refer to description of register ccr3). in case no more data is available in the xfifo prior to the arrival of xme, the transmission of the block is terminated with idle and the cpu is notified per interrupt (isr1:xdu). the block may also be aborted per software (cmdr:xres). the data transmission flow, from the cpus point of view, is outlined in figure 46. figure 46 interrupt driven data transmission (flow diagram)
sab 82532/saf 82532 operational description semiconductor group 107 07.96 the activities at both serial and cpu interface during frame transmission (supposed frame length = 70 bytes) are shown in figure 47. figure 47 interrupt driven transmission sequence example (hdlc)
sab 82532/saf 82532 operational description semiconductor group 108 07.96 9.3.1.2 dma mode prior to data transmission, the length of the next frame (or the next block of characters) to be transmitted must be programmed via the transmit byte count registers (xbch, xbcl). the resulting byte count equals the programmed value plus one byte, i.e. since 12 bits are provided via xbch, xbcl (xbc11 xbc0) a frame length of 1 up to 4096 bytes (4 kbytes) can be selected. after this, data transmission can be initiated by command (xtf or xif in hdlc/sdlc mode, xf in async and bisync mode). the escc2 will then autonomously request the correct amount of write cycles by activating the drt line for as long as necessary, taking into account the selected data bus width (i.e. byte or word accesses). for a frame length of l = (n 32 + remainder) bytes (n = 0, 1, ,128), block data transfers of 32 bytes/16 words or remainder ( ? 2) bytes (words) are requested whenever a 32-byte fifo half (transmit pool) is empty and accessible to the dma controller. the following figure gives an example of a dma driven transmission sequence with a supposed frame length of 70 bytes, i.e. programmed transmit byte count (xcnt) equal to 69 bytes. figure 48 dma driven transmission sequence example (hdlc)
sab 82532/saf 82532 operational description semiconductor group 109 07.96 9.3.2 data reception 9.3.2.1 interrupt mode also 2 32 byte fifo buffers (receive pools) are provided for each channel in receive direction. there are different interrupt indications concerned with the reception of data: hdlc/sdlc ? rpf (receive pool full) interrupt, indicating that a 32-byte block of data can be read from rfifo and the received message is not yet complete. ? rme (receive message end) interrupt, indicating that the reception of one message is completed, i.e. either C one message with less than 32 bytes, or the C last part of a message with more than 32 bytes is stored in the rfifo. in addition to the message end (rme) interrupt the following information about the received frame is stored by the escc2 in special registers and/or rfifo: async, bisync ? rpf (receive pool full) interrupt, indicating that a specified number of bytes (refer to register rfc) can be read from rfifo. ? tcd (termination character detected) interrupt, indicating that reception has been terminated by reception of a specified character (refer to register tcr and bit rfc:tcde). additionally, the cpu can have access to contents of rfifo without having received an interrupt (and thereby causing tcd to occur) by issuing the rfifo read command (cmdr:rfrd). table 8 status information after rme interrupt length of message (bytes) address combination and/or address field control field type of frame (command/response) crc result (good/bad) valid frame (yes/no) abort sequence recognized (yes/no) data overflow t rbch, rbcl t rsta t ral1 t rhcr t rsta t rsta t rsta t rsta t rsta register rfifo: last byte rfifo rfifo rfifo: last byte rfifo: last byte rfifo: last byte rfifo: last byte rfifo: last byte
sab 82532/saf 82532 operational description semiconductor group 110 07.96 in addition to every received character the assigned status information parity bit (0/1), parity error (yes/no), framing error (yes/no, async only!) is optionally stored in rfifo. in addition to the end conditions (tcd interrupt or after rfrd command) the length of the last received data block is stored in register rbcl. note: for all serial modes: after the received data has been read from the rfifo, this must be explicitly acknowledged by the cpu issuing a rmc (receive message complete) command. the cpu has to handle the rpf interrupt before additional 32 bytes are received via the serial interface which would cause a receive data overflow condition. the following figure gives an example of an interrupt controlled reception sequence, assuming that a long frame (66 bytes) followed by two short frames (6 bytes each) is received. figure 49 interrupt driven reception sequence example (hdlc)
sab 82532/saf 82532 operational description semiconductor group 111 07.96 9.3.2.2 dma mode if the rfifo contains 32 bytes, the escc2 autonomously requests a block data transfer by dma by activating the drr line for as long as the start of the 32 nd (byte access) or 16 th (word access) read cycle. this forces the dma controller to continuously perform bus cycles till 32 bytes are transferred from the escc2 to the system memory. if the rfifo contains less than 32 bytes, the escc2 requests the correct amount of transfer cycles depending on the contents of the rfifo and taking into account the selected bus width. note: all available status information for each frame/data block after the end conditions (rme or tcd) and for each character is the same as described above. after the dma controller has been set up for the reception of the next frame, the cpu must issue a rmc command to acknowledge the completion of received data processing. the escc2 will not initiate further dma cycles by activating the drr line prior to the reception of rmc. in hdlc/sdlc mode the receive status register is automatically read from the rfifo with the last dma-read cycle of the received frame. the status information after a rme interrupt is the same as in the interrupt driven mode. the following figure gives an example of a dma controlled reception sequence, supposing that a long frame (66 bytes) followed by two short frames (6 bytes each) is received. figure 50 dma driven reception sequence example (hdlc)
sab 82532/saf 82532 detailed register description semiconductor group 112 07.96 hdlc mode 10 detailed register description 10.1 status/control registers in hdlc mode 10.1.1 register addresses address (a0 a6) register meaning refer to page channel a b read write 00 . . . . . . 1f 40 . . . . . . 5f rfifo xfifo receive/transmit fifo 114/115 20 60 star cmdr status register/command register 115/117 21 61 rsta pre receive status/preamble register 120/119 22 62 mode mode register 122 23 63 timr timer register 124 24 64 xad1 transmit address 1 126 25 65 xad2 transmit address 2 127 26 66 C rah1 receive address high 1 128 27 67 C rah2 receive address high 2 129 28 68 ral1 receive address low 1 130 29 69 rhcr ral2 receive hdlc control/receive address low 2 131/131 2a 6a rbcl xbcl receive byte count low/transmit byte count low 131/132 2b 6b rbch xbch receive/transmit byte count high 132/133
sab 82532/saf 82532 detailed register description semiconductor group 113 07.96 note: read access to unused register addresses: value should be ignored, write access to unused register addresses: should be avoided, or set to 00 h . 2c 6c ccr0 channel configuration register 0 134 2d 6d ccr1 channel configuration register 1 135 2e 6e ccr2 channel configuration register 2 137 2f 6f ccr3 channel configuration register 3 139 30 70 C tsax time-slot assignment register transmit 141 31 71 C tsar time-slot assignment register receive 141 32 72 C xccr transmit channel capacity register 142 33 73 C rccr receive channel capacity register 142 34 74 vstr bgr version status/baud rate generator register 143/144 35 75 C rlcr receive frame length check 145 36 76 C aml address mask low 145 37 77 C amh address mask high 146 38 78 gis 1) iva 1) global interrupt status/interrupt vector address 146/147 39 79 ipc 1) interrupt port configuration 148 3a 7a isr0 imr0 interrupt status 0/interrupt mask 0 149/154 3b 7b isr1 imr1 interrupt status 1/interrupt mask 1 151/154 3c 7c pvr port value register 154 3d 7d pis 1) pim 1) port interrupt status/port interrupt mask 155/155 3e 7e pcr 1) port configuration register 156 3f 7f ccr4 channel configuration register 4 157 1) both channel assigned addresses enable access to the same register(s). 10.1.1 register addresses (contd) address (a0 a6) register meaning refer to page channel a b read write hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 114 07.96 10.1.2 register definitions receive fifo (rfifo) access: read address: ch-a: 00 ... 1f h ch-b: 40 ... 5f h reading data from the rfifo can be done in 8-bit (byte) or 16-bit (word) access depending on the selected bus interface mode. the lsb is received first from the serial interface. in version 2 upwards, the size of the accessible part of rfifo is determined by programming the bits ccr4:rft 1 0 (rfifo threshold level). it can be reduced from 32 bytes (reset value) down to 2 bytes (four values: 32, 16, 4, 2 bytes). ? interrupt controlled data transfer (interrupt mode) selected if dma bit in xbch is reset. up to 32 bytes/16 words of received data can be read from the rfifo following an rpf or an rme interrupt. rpf interrupt: a fixed number of bytes/words to be read (version 1: 32 bytes; version 2 upward: 32, 16, 4, 2 bytes). the message is not yet complete. rme interrupt: the message is completely received. the number of valid bytes is determined by reading the rbcl, rbch registers. rfifo is released by issuing the receive message complete command (rmc). ? dma controlled data transfer (dma mode) selected if dma bit in xbch is set. if the rfifo is filled up to its threshold level, the escc2 autonomously requests a block data transfer by dma by activating the drrn line until all read cycles are performed (the drrn line remains active up to the beginning of the last read cycle). this forces the dma controller to continuously perform bus cycles till all bytes/words are transferred from the escc2 to the system memory (level triggered transfer mode of dma controller). if the rfifo contains less bytes/words than defined via threshold level (one short frame or the last part of a long frame) the escc2 requests a block data transfer of size equal to the amount of data to be transferred. additionally, an rme interrupt is generated after the last byte has been transferred. further receiver dma requests are blocked until an rmc command is issued in response to rme. the valid byte count of the whole frame can be determined by reading the rbch, rbcl registers following the rme interrupt. note: addresses within the address space of the fifos point all to the current data word/byte, i.e. the current data byte can be accessed with any address within the 32-byte range. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 115 07.96 transmit fifo (xfifo) access: write address: ch-a: 00 ... 1f h ch-b: 40 ... 5f h writing data to the xfifo can be done in 8-bit (byte) or 16-bit (word) access depending on the selected bus interface mode. the lsb is transmitted first. ? interrupt mode selected if dma bit in xbch is set to zero. up to 32 bytes/16 words of transmit data can be written to the xfifo following an xpr (or alls) interrupt. ? dma mode selected if dma bit in xbch is set to one. prior to any data transfer, the actual byte count of the frame to be transmitted must be written to the xbch, xbcl registers by the user. if data transfer is then initiated via the cmdr register (command xtf or xif), the escc2 autonomously requests the correct amount of block data transfers (n bw + remainder; bw = 32 or 16; n = 0, 1, ). note: addresses within the address space of the fifos all point to the current data word/byte, i.e. the current data byte can be accessed with any address within the 32-byte range. in hdlc mode (no extended transparent mode) 32 bytes have to be written to the fifo when only xtf command is set afterwards. there is no restriction when xtf and xme command is set afterwards. status register (star) access: read address: ch-a: 20 h ch-b: 60 h value after reset: 48 h 70 star xdov xfw xrnr rrnr rli cec cts wfa xdov transmit data overflow more than 32 bytes have been written to the xfifo. this bit is reset by: C a transmitter reset command xres C or when all bytes in the accessible half of the xfifo have been moved into the inaccessible half. xfw transmit fifo write enable data can be written to the xfifo. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 116 07.96 xrnr transmit rnr (significant in auto-mode only!) indicates the status of the escc2. 0 receiver ready 1 receiver not ready rrnr received rnr (significant in auto-mode only!) indicates the status of the remote station. 0 receiver ready 1 receiver not ready rli receive line inactive neither flags as interframe time-fill nor frames are received via the receive line. note: significant only in point-to-point configurations. cec command executing 0 no command is currently being executed, the cmdr register can be written to. 1 a command (written previously to cmdr) is currently being executed, no further command can be temporarily written in cmdr register. note: cec will be active at most 2.5 transmit clock (or master clock) periods. if the escc2 is in power-down mode cec will stay active. cts clear to send state this bit indicates the state of the cts pin. 0 cts is inactive (high) 1 cts is active (low) wfa wait for acknowledgement (significant in auto-mode only!) indicates the wait for i-frame acknowledgement status of escc2. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 117 07.96 command register (cmdr) access: write address: ch-a: 20 h ch-b: 60 h value after reset: 00 h 70 cmdr rmc rhr rnr/ xrep sti xtf xif xme xres rmc receive message complete confirmation from cpu to escc2 that the current frame or data block has been fetched following an rpf or rme interrupt, thus the occupied space in the rfifo can be released. note: in dma mode, this command has to be issued after an rme interrupt, to enable the generation of further receiver dma requests. rhr reset hdlc receiver all data in the rfifo and the hdlc receiver is deleted. in auto-mode, additionally the transmit and receive sequence number counters are reset. rnr/xrep receiver not ready/transmission repeat the function of this command depends on the selected operation mode (mds1, mds0, adm bit in mode): ? auto mode: rnr determines the status of the escc2 receiver, i.e. whether a received frame is acknowledged via an rr or rnr supervisory frame in auto-mode. 0 receiver ready (rr) 1 receiver not ready (rnr) ? extended transparent mode 0, 1: xrep if xrep is set to one together with xtf and xme (write 2a h to cmdr), the escc2 repeatedly transmits the contents of the xfifo (1 32 bytes) without hdlc framing fully transparently, i.e. without flag, crc or bit stuffing. the cyclic transmission is stopped with an xres command. sti start timer the internal timer is started. note: the timer is stopped by rewriting the timr register after start. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 118 07.96 xtf transmit transparent frame ? interrupt mode after having written up to 32 bytes to the xfifo, this command initiates the transmission of a transparent frame. an opening flag sequence is automatically added to the data by the escc2. ? dma mode after having written the length of the frame to be transmitted to the xbch, xbcl registers, this command initiates the data transfer from system memory to escc2 by dma. serial data transmission starts as soon as 32 bytes are stored in the xfifo or the transmit byte counter value is reached. xif transmit i-frame (used in auto-mode only!) initiates the transmission of an i-frame in auto-mode. additionally to the opening flag sequence, the address and control field of the frame is automatically added by escc2. xme transmit message end (used in interrupt-mode only!) indicates that the data block written last to the transmit fifo completes the current frame. the escc2 can terminate the transmission operation properly by appending the crc and the closing flag sequence to the data. in dma mode, the end of the frame is determined by the transmit byte count in xbch, xbcl, thus, xme is not used in this case. xres transmitter reset xfifo is cleared of any data and an abort sequence (seven 1s) followed by interframe time-fill is transmitted. in response to xres an xpr interrupt is generated. this command can be used by the cpu to abort a frame currently in transmission. note: the maximum time between writing to the cmdr register and the execution of the command is 2.5 clock cycles. therefore, if the cpu operates with a very high clock rate in comparison with the escc2s clock, it is recommended to check the cec bit of the star register before writing to the cmdr register to avoid any loss of commands. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 119 07.96 preamble register (pre) access: write address: ch-a: 21 h ch-b: 61 h value after reset: 00 h this register defines the pattern which is sent out during preamble transmission (refer to register ccr3). note: it should be taken into consideration that zero bit insertion is disabled during preamble transmission. 70 pre pr7 . . . pr0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 120 07.96 receive status register (rsta) access: read address: ch-a: 21 h ch-b: 61 h note: the contents of the rsta register relates to the last received hdlc frame and is updated when end-of-frame is recognized at the serial receive interface. additionally, rsta byte is copied into rfifo (last byte of each stored frame). thus, after rme interrupt instead of the contents of rsta register the rsta byte stored in the rfifo as the last byte of each frame should be evaluated. 70 rsta vfr rdo crc rab ha1 ha0 c/r la vfr valid frame determines whether a valid frame has been received. 1 valid 0 invalid. an invalid frame is either ? a frame which is not an integer number of 8 bits (n 8 bits) in length (e.g. 25 bits), or ? a frame which is too short taking into account the operation mode selected via mode (mds1, mds0, adm) and the selected crc algorithm (ccr2:c32) and the selection of receive crc on/off (ccr3:rcrc) as follows: C auto-/non-auto mode (16-bit address), rcrc = 0 : 4 bytes (crc-ccitt) or 6 (crc-32) C auto-/non-auto mode (16-bit address), rcrc = 1 : 3-4 bytes (crc-ccitt) or 3-6 (crc-32) C auto-/non-auto mode (8-bit address), rcrc = 0 : 3 bytes (crc-ccitt) or 5 (crc-32) C auto-/non-auto-mode (8-bit address), rcrc = 1 : 2-3 bytes (crc-ccitt) or 2-5 (crc-32) C transparent mode 1: 3 bytes (crc-ccitt) or 5 (crc-32) C transparent mode 0: 2 bytes (crc-ccitt) or 4 (crc-32) note: shorter frames are not reported. rdo receive data overflow a data overflow has occurred during reception of the frame. additionally, an interrupt can be generated (refer to isr1:rdo / imr1:rdo). hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 121 07.96 crc crc compare/check 0 crc check failed; received frame contains errors. 1 crc check o.k.; received frame is error-free. rab receive message aborted the received frame was aborted from the transmitting station. according to the hdlc protocol, this frame must be discarded by the receiver station. ha1 ha0 high byte address compare significant only if 2-byte address mode has been selected. in operating modes which provide high byte address recognition, the escc2 compares the high byte of a 2-byte address with the contents of two individually programmable registers (rah1, rah2) and the fixed values fe h and fc h (broadcast address). dependent on the result of this comparison, the following bit combinations are possible: 10 rah1 has been recognized 00 rah2 has been recognized 01 broadcast address has been recognized note: if rah1, rah2 contain identical values, a match is indicated by 10. c/r command/response significant only if 2-byte address mode has been selected. value of the c/r bit (bit in high address byte) in the received frame. the interpretation depends on the setting of the cri bit in the rah1 register. refer also to the description of rah1 register. la low byte address compare not significant in transparent and extended transparent operating modes. the low byte address of a 2-byte address field, or the single address byte of a 1-byte address field is compared with two registers (ral1, ral2). 0 ral2 has been recognized. 1 ral1 has been recognized. according to the x.25 lapb protocol, ral1 is interpreted as the address of a command frame and ral2 is interpreted as the address of a response frame. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 122 07.96 mode register (mode) access: read/write address: ch-a: 22 h ch-b: 62 h value after reset: 00 h 70 mode mds1 mds0 adm tmd rac rts trs tlp mds1 mds0 mode select the operating mode of the hdlc controller is selected. 00 auto-mode 01 non auto-mode 10 transparent mode 11 extended transparent mode adm address mode the meaning of this bit varies depending on the selected operating mode: ? auto-mode, non auto-mode defines the length of the hdlc address field. 0 8-bit address field 1 16-bit address field in transparent modes, this bit differentiates between two sub-modes: ? transparent mode 0 transparent mode 0; no address recognition. 1 transparent mode 1; high byte address recognition. ? extended transparent mode; without hdlc framing. 0 extended transparent mode 0 1 extended transparent mode 1 note: in extended transparent modes, the rac bit must be reset to enable fully transparent reception. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 123 07.96 tmd timer mode determines the operating mode of the timer. 0 external mode the timer is controlled by the cpu and can be started at any time by setting the sti bit in cmdr. 1 internal mode the timer is used internally by the escc2 for time-out and retry conditions in auto-mode (refer to the description of the timr register). rac receiver active switches the receiver to operational or inoperational state. 0 receiver inactive 1 receiver active in extended transparent modes this bit must be reset to enable fully transparent reception. rts request to send defines the state and control of rts pin. 0 the rts pin is controlled by the escc2 autonomously. rts is activated when a frame transmission starts and deactivated when transmission is completed. 1 the rts pin is controlled by the cpu. if this bit is set, the rts pin is activated immediately and remains active till this bit is reset. trs timer resolution selects the resolution of the internal timer (factor k, see description of timr register): 0 k = 32 768 1 k = 512 tlp test loop input and output of the hdlc channel are internally connected. (transmitter channel a C receiver channel a/ transmitter channel b C receiver channel b) hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 124 07.96 timer register (timr) access: read/write address: ch-a: 23 h ch-b: 63 h 70 timr ctn value value (5 bits) sets the time period t 1 as follows: t 1 = k (value + 1) tcp where C k is the timer resolution factor which is either 32 768 or 512 clock cycles dependent on the programming of trs bit in mode. C tcp is the clock period of transmit data (ccr0:mce = 0) or master clock (ccr0:mce = 1). cnt (3 bits) interpreted differently depending on the selected timer mode (bit tmd in mode). ? internal timer mode (mode:tmd = 1) C retry counter (in hdlc known as n2) cnt indicates the number of s-commands (max. 6) which are transmitted autonomously by the escc2 after expiration of time period t 1 , in case an i-frame is not acknowledged by the opposite station. if cnt is set to 7, the number of s-commands is unlimited. ? external timer mode (mode:tmd = 0) cnt plus value determine the time period t 2 after which a timer interrupt will be generated. the time period t 2 is t 2 = 32 k cnt tcp + t 1 . if cnt is set to 7, a timer interrupt is periodically generated after the expiration of t 1 . hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 125 07.96 version 3.x timr timer register (read/write) is unchanged. however the input to the timer function can be optionally selected to be xtal/4 in master clock mode by setting ccr0:mce = 1 and ccr4:mck4 = 1. with ccr4:mck4 =1 in master clock mode, xtal clock divide-by-4 is fed to the timer block. the xtal clock feeds the baud rate generator which is used to select the transmit and received baud rate and generates the 16- oversampling clock. by this means, a xtal clock of 30 mhz can be used while maintaining the core logics clock operation limit of 10 mhz. value (5 bits) sets the time period t 1 as follows: with ccr4:mck4 = 0 and default condition, the timer value is given by the equation t 1 = k (value + 1) tcp where C k is the timer resolution factor which is either 32 768 (if mode:trs = 0) or 512 (if mode:trs = 1) clock cycles. C tcp is the clock period of the timer clock. non master clock mode (ccr0:mce = 0) timer clock period (tcp) = transmit clock period master clock mode (ccr0:mce = 1) if ccr4:mck4 = 0 (reset state) timer clock period (tcp) = xtal clock period if ccr4:mck4 = 1 timer clock period (tcp) = xtal clock period/4 cnt (3 bits) the cnt function is unchanged. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 126 07.96 transmit address byte 1 (xad1) access: read/write address: ch-a: 24 h ch-b: 64 h xad1 (and xad2) can be programmed with one individual address byte which is appended automatically to the frame by escc2 in auto-mode. the function depends on the selected address mode (bit adm in mode). C 2-byte address field (mode:adm = 1) xad1 constitutes the high byte of the 2-byte address field. bit 1 must be set to 0. according to the isdn lapd protocol, bit 1 is interpreted as the c/r (command/response) bit. this bit is manipulated automatically by the escc2 according to the setting of the cri bit in rah1: (in isdn lapd, the high address byte is known as sapi). in accordance with the hdlc protocol, bit 0 should be set to 0, to indicate that the address field contains (at least) one more byte. C 1-byte address field (mode:adm = 0) according to the x.25 lapb protocol, xad1 is the address of a command frame. 2-byte address 70 xad1 xad1 (high byte) 0 (0) 1-byte address 70 xad1 xad1 (command) bit 1 (c/r) commands transmit 1 0 responses transmit 0 1 cri = 1 cri = 0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 127 07.96 transmit address byte 2 (xad2) access: read/write address: ch-a: 25 h ch-b: 65 h second individually programmable address byte. C 2-byte address (mode:adm = 1) xad2 constitutes the low byte of the 2 byte address field (in isdn lapd, the low address byte is known as tei). C 1-byte address (mode:adm = 0) according to the x.25 lapb protocol, xad2 is the address of a response frame. note: xad1, xad2 registers are used only if the escc2 is operated in auto-mode. 2-byte address 70 xad2 xad2 (low byte) 1-byte address 70 xad2 xad2 (response) hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 128 07.96 receive address byte high register 1 (rah1) access: write address: ch-a: 26 h ch-b: 66 h in operating modes that provide high byte address recognition, the high byte of the received address is compared with the individually programmable values in rah1 and rah2. in version 2 upwards, this register can be masked by setting the corresponding bits in the mask register amh to allow extended broadcast address recognition. this feature is applicable to all operating modes with address recognition. 70 rah1 rah1 cri 0 rah1 value of the first individual high address byte cri command/response interpretation the setting of the cri bit affects the meaning of the c/r bit in rsta as follows: important note: if 1-byte address field is selected in auto-mode, rah1 must be set to 00 h . c/r meaning c/r value commands received 0 1 responses received 1 0 cri = 1 cri = 0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 129 07.96 receive address byte high register 2 (rah2) access: write address: ch-a: 27 h ch-b: 67 h 70 rah2 rah2 mcs 0 rah2 value of second individual high address byte. mcs modulo count select (valid in auto-mode only!) the mcs bit determines the hdlc control field format. 0 basic operation, one-byte control field (modulo-8) 1 extended operation, two-byte control field (modulo-128) note: when modulo-128 is selected, in auto mode the rhcr register contains compressed information of the extended control field (see rhcr register description). rah1, rah2 registers are used in auto- and non-auto operating modes when a 2-byte address field has been selected (mode:adm = 1) and in transparent mode 0. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 130 07.96 receive address byte low register 1 (ral1) access: read/write address: ch-a: 28 h ch-b: 68 h the general function (write or read) and the meaning or contents of this register depend on the selected operating mode: ? auto- / non-auto-mode (16-bit address) C write access only (read access not specified) ral1 can be programmed with the value of the first individual low address byte. ? auto- / non-auto-mode (8-bit address) C write access only (read access not specified) according to x.25 lapb protocol, the address in ral1 is considered as the address of a command frame. ? transparent mode 1 (high byte address recognition) C read access only (write access has no influence) ral1 contains the byte following the high byte of the address in the receive frame (i.e. the second byte after the opening flag). ? transparent mode 0 (no address recognition) C read access only (write access has no influence) ral1 contains the first byte after the opening flag (first byte of received frame). ? extended transparent modes 0, 1 C read access only (write access has no influence) ral1 contains the current data byte assembled from the rxd pin, the hdlc receiver is bypassed (fully transparent reception without hdlc framing). in versions 2 and upwards, this register can be masked by setting the corresponding bits in the mask register aml to allow extended broadcast address recognition. this feature is applicable to all operating modes with address recognition. 70 ral1 ral1 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 131 07.96 receive hdlc control register (rhcr) access: read address: ch-a: 29 h ch-b: 69 h value of the hdlc control field of the last received frame. note: rhcr is copied into rfifo for every frame. receive address byte low register 2 (ral2) access: write address: ch-a: 29 h ch-b: 69 h value of the second individually programmable low address byte. if a one byte address field is selected, ral2 is considered as the address of a response frame according to x.25 lapb protocol. receive byte count low (rbcl) access: read address: ch-a: 2a h ch-b: 6a h together with rbch (bits rbc11 rbc8), rbcl indicates the length of a received frame (1 4095 bytes). bits rbc4 ... 0 indicate the number of valid bytes currently in rfifo. these registers must be read by the cpu following a rme interrupt. 70 rhcr rhcr 70 ral2 ral2 70 rbcl rbc7 rbc0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 132 07.96 transmit byte count low (xbcl) access: write address: ch-a: 2a h ch-b: 6a h together with xbch (bits xbc11 xbc8) this register is used in dma mode only, to program the length (1 4096 bytes) of the next frame to be transmitted. in terms of the value xbc, programmed in xbc11 xbc0 (xbc = 0 4095), the length of the block in number of bytes is: length = xbc + 1. this allows the escc2 to request the correct amount of dma cycles after an xtf or xif command in cmdr. received byte count high (rbch) access: read address: ch-a: 2b h ch-b: 6b h value after reset: 000xxxxx 70 xbcl xbc7 xbc0 70 rbch dma nrm cas ov rbc11 rbc10 rbc9 rbc8 see xbch dma, nrm, cas these bits represent the read-back value programmed in xbch ov counter overflow more than 4095 bytes received. rbc11 rbc8 receive byte count (most significant bits) together with rbcl (bits rbc7 rbc0) these bits indicate the length of the received frame. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 133 07.96 transmit byte count high (xbch) access: write address: ch-a: 2b h ch-b: 6b h value after reset: 000xxxxx 70 xbch dma nrm cas xc xbc11 xbc10 xbc9 xbc8 dma dma mode selects the data transfer mode of escc2 to/from system memory. 0 interrupt controlled data transfer (interrupt mode). 1 dma controlled data transfer (dma mode). nrm normal response mode allowed in auto-mode only. determines the function of the lap controller: 0 full-duplex lapb/lapd operation 1 half-duplex nrm operation cas carrier detect auto start when set, a high on the cd pin enables the corresponding receiver and data reception is started. when not set, if not in clock mode 1 or 5, the cd pin can be used as a general input. xc transmit continuously only valid if dma mode is selected. if the xc bit is set, the escc2 continuously requests for transmit data ignoring the transmit byte count programmed via xbch, xbcl. the byte count programmed via xbch, xbcl, however, must be set to a value different from 0. xbc11 xbc8 transmit byte count (most significant bits) valid only if dma mode is selected. together with xbcl (bits xbc7 xbc0) these bits determine the length of the frame to be transmitted. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 134 07.96 channel configuration register 0 (ccr0) access: read/write address: ch-a: 2c h ch-b: 6c h value after reset: 00 h note: unused bits have to be set to logical 0'. 70 ccr0 pu mce 0 sc2 sc1 sc0 sm1 sm0 pu switches between power-up and power-down mode 0 power-down (standby) 1 power-up (active) mce master clock enable if this bit is set to 1, the clock provided via pin xtal1 works as master clock to allow full functionality of the microprocessor interface (access to all status and control registers and fifos, dma and interrupt support) independent of the receive and the transmit clocks. the internal oscillator in conjunction with a crystal on xtal1-2 can be used, too. the master clock option is not applicable in clock mode 5 or in sdlc loop mode. refer to table 5 for more details. note: the internal timers run with the master clock. sc2 sc0 serial port configuration 000 nrz data encoding 001 bus configuration, timing mode 1 010 nrzi data encoding 011 bus configuration, timing mode 2 100 fm0 data encoding 101 fm1 data encoding 110 manchester data encoding 111 (not used) note: if bus configuration is selected, only nrz coding is supported. sm1 sm0 serial mode 00 hdlc/sdlc mode 01 sdlc loop mode 10 bisync mode 11 async mode hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 135 07.96 channel configuration register 1 (ccr1) access: read/write address: ch-a: 2d h ch-b: 6d h value after reset: 00 h 70 ccr1 sflg galp glp ods itf/ oin cm2 cm1 cm0 sflg enable shared flags if this bit is set, the closing flag of a preceding frame simultaneously becomes the opening flag of the following frame. galp go active on loop only used if sdlc loop is enabled. this bit enables transmission on an sdlc loop. 1 after detection of the next eop sequence, the escc2 goes to the sending on loop state by changing the seventh 1-bit of the eop sequence into a 0, thus creating a start flag, and by disconnecting the txd pin from the rxd pin. the escc2 is now active on loop and can transmit frames as soon as data is available in the xfifo. the time between frames is always filled by sending continuous flags (independent from the value of bit ccr1:itf), thus occupying the loop. 0 the escc2 leaves the sending on loop state when the xfifo is empty by retransmitting data received on rxd to txd (with one bit delay) after the closing flag has been transmitted (thus creating an eop sequence). glp go on loop only used if sdlc loop is enabled. this command controls entering and leaving the sdlc loop. 1 the escc2 enters the on loop state after detection of the next eop sequence by adding a 1-bit delay between receive and transmit path. the on loop state is prerequisite for sending frames on loop. 0 the escc2 leaves the on loop state by suppressing the 1-bit delay after detection of the next eop sequence. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 136 07.96 ods output driver select defines the function of the transmit data pin (txd) 0 txd pin is an open drain output. 1 txd pin is a push-pull output. note: this feature is also valid for pin rxd if it is switched to txd function via bit ccr2:soc1. itf/oin interframe time-fill / one insertion the function of this bit depends on the selected serial port configuration (bit sc1): ? point-to-point configurations: itf determines the idle (= no data to send) state of the transmit data pin txd ? 0 continuous logical 1 is output 1 continuous flag sequences are output (01111110-bit patterns) ? bus configurations: oin when this bit is set, a one insertion (deletion) mechanism is activated: a 1 is inserted after seven consecutive 0s in the transmit data stream and a 1 is deleted after seven consecutive 0 in the receive data stream. similar to the hdlc bit stuffing mechanism (inserting a 0 after five consecutive 1s), this enables clock information to be recovered from the receive data stream by means of a dpll even in the case of nrz encoding, because a transition at bit cell boundary occurs at least every 7 bits. the one insertion cannot be used in conjunction with the master clock option. note: in bus configurations, the itf is implicitly set to 0, i.e. continuous 1s are transmitted, and data encoding is nrz. cm2 cmo clock mode selects one of 8 different clock modes: 000 clock mode 0 .. .. .. 111 clock mode 7 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 137 07.96 channel configuration register 2 (ccr2) access: read/write address: ch-a: 2e h ch-b: 6e h value after reset: 00 h the meaning of the individual bits in ccr2 depends on the clock mode selected via ccr1 as follows: note: unused bits have to be set to logical 0'. ccr2 7 0 clock mode 0a, 1 soc1 soc0 0 ssel 0 rwx c32 div clock mode 0b, 2, 3, 6, 7 br9 br8 bdf ssel toe rwx c32 div clock mode 4 soc1 soc0 0 0 toe rwx c32 div clock mode 5 soc1 soc0 xcs0 rcs0 toe rwx c32 div soc1, soc0 special output control in a bus configuration (selected via ccr0), defines the function of pin rts as follows: 0x rts output is activated during transmission of a frame. 10 rts output is always high ( rts disabled). 11 rts indicates the reception of a data frame (active low). in a point-to-point configuration (selected via ccr0) the txd and rxd pins may be flipped. 0x data is transmitted on txd, received on rxd (normal case). 1x data is transmitted on rxd, received on txd. br9 br8 baud rate, bit 9-8 high order bits, see description of bgr register. xcs0, rcs0 transmit/receive clock shift, bit 0 together with bits xcs2, xcs1 (rcs2, rcs1) in tsax (tsar) the clock shift relative to the frame synchronization signal of the transmit (receive) time-slot can be adjusted. a clock shift of 0 7 bits is programmable. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 138 07.96 bdf baud rate division factor 0 the division factor of the baud rate generator is set to 1 (constant). 1 the division factor is determined by br9 br0 bits in ccr2 and brg registers. ssel clock source select selects the clock source in clock modes 0, 2, 3, 6 and 7 (refer to table 5 ). toe txclk output enable 0 txclk pin is input. 1 txclk pin is switched to output function if applicable to the selected clock mode (refer to table 5 ). rwx read/write exchange valid only in dma mode. if this bit is set, the C rd and wr pins are internally exchanged (siemens/intel bus interface) Cr/ w pin is inverted in polarity (motorola bus interface) while any dack input is active. this feature allows a simple interfacing to the dma controller. note: the rwx bit of both channels is ored. c32 enable crc-32 0 crc-ccitt is selected. 1 crc-32 is selected. div data inversion only valid if nrz data encoding is selected. data is transmitted and received inverted. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 139 07.96 channel configuration register 3 (ccr3) access: read/write address: ch-a: 2f h ch-b: 6f h value after reset: 00 h 70 ccr3 pre1 pre0 ept radd crl rcrc xcrc psd pre1 pre0 number of preamble repetition if preamble transmission is initiated, the preamble defined via register pre is transmitted 00 1 times 01 2 times 10 4 times 11 8 times. ept enable preamble transmission this bit enables transmission of a preamble. the preamble is started after interframe time-fill transmission has been stopped and a new frame is to be transmitted. the preamble consists of an 8-bit pattern repeated a number of times. the pattern is defined via register pre, the number of repetitions is selected by bits pre0 and pre1. note: the shared flag feature is not influenced by preamble transmission. zero bit insertion is disabled during preamble transmission. radd receive address pushed to rfifo if this bit is set to 1, the received hdlc address information (1 or 2 bytes, depending on the address mode selected via mode:adm) is pushed to rfifo. this function is applicable in auto mode, non-auto mode and transparent mode 1. crl crc reset level this bit defines the initialization for the internal receive and transmit crc generators: 0 initialized to (ffff)ffff h . default value for most hdlc/sdlc applications. 1 initialized to (0000)0000 h . hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 140 07.96 rcrc receive crc on/off only applicable in non-auto mode and transparent mode 0. if this bit is set to 1, the received crc checksum will be written to rfifo (crc-ccitt: 2 bytes; crc-32: 4 bytes). the checksum, consisting of the 2 (or 4) last bytes in the received frame, is followed in the rfifo by the status information byte (contents of register rsta). the received crc checksum will additionally be checked for correctness. if non-auto mode is selected, the limits for valid frame check are modified (refer to rsta:vfr). xcrc transmit crc on/off if this bit is set to 1, the crc checksum will not be generated internally. it has to be written as the last two or four bytes in the transmit fifo (xfifo). the transmitted frame will be closed automatically with a closing flag. note: the escc2 does not check whether the length of the frame, i.e. the number of bytes to be transmitted makes sense or not. psd dpll phase shift disable only applicable in the case of nrz and nrzi encoding. if this bit is set to 1, the phase shift function of the dpll is disabled. in this case the windows for phase adjustment are extended. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 141 07.96 time-slot assignment register transmit (tsax) access: write address: ch-a: 30 h ch-b: 70 h value after reset: 00 h note: this register is only used in clock mode 5! time-slot assignment register receive (tsar) access: write address: ch-a: 31 h ch-b: 71 h value after reset: 00 h this register is only used in clock mode 5! 70 tsax tsnx xcs2 xcs1 tsnx time-slot number transmit selects one of up to 64 possible time-slots (00 h 3f h ) in which data is transmitted. the number of bits per time-slot can be programmed via xccr. xcs2 xcs1 transmit clock shift, bit 2 1 together with bit xcs0 in ccr2, transmit clock shift can be adjusted. 70 tsar tsnr rcs2 rcs1 tsnr time-slot number receive defines one of up to 64 possible time-slots (00 h 3f h ) in which data is received. the number of bits per time-slot can be programmed via rccr. rcs2 rcs1 receive clock shift, bit 2 1 together with bit rcs0 in ccr2, the receive clock shift can be adjusted. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 142 07.96 transmit channel capacity register (xccr) access: write address: ch-a: 32 h ch-b: 72 h value after reset: 00 h note: this register is only used in clock mode 5! receive channel capacity register (rccr) access: write address: ch-a: 33 h ch-b: 73 h value after reset: 00 h note: this register is only used in clock mode 5! 70 xccr xbc7 xbc0 xbc7 xbc0 transmit bit number count, bit 7 0 defines the number of bits to be transmitted within a time-slot: number of bits = xbc + 1 (1 256 bits/time-slot). 70 rccr xbc7 rbc0 rbc7 rbc0 receive bit count, bit 7 0 defines the number of bits to be received within a time-slot: number of bits = rbc + 1 (1 256 bits/time-slot). hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 143 07.96 version status register (vstr) access: read address: ch-a: 34 h ch-b: 74 h 70 vstr cd dpla 0 0 vn3 vn2 vn1 vn0 cd carrier detect this bit reflects the state of the cd pin. 1 cd active 0 cd inactive dpla dpll asynchronous this bit is only valid when the receive clock is supplied by the dpll and fm0, fm1 or manchester data encoding is selected. it is set when the dpll has lost synchronization. reception is disabled (receiver aborted) until synchronization has been regained. additionally, transmission is interrupted, too, if the transmit clock is derived from the dpll (same effect as the deactivation of pin cts). vn3 vn0 version number of chip 0000 version 1 0001 version 2 0010 version 3.2 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 144 07.96 baud rate generator register (bgr) access: write address: ch-a: 34 h ch-b: 74 h 70 bgr br7 br0 br7 br0 baud rate, bits 7 0 the baud rate generator divisor consists of bits br0-7 from brg register and bits br8-9 from the ccr2 register. the baud rate generator has two modes of operation giving added flexibility. standard mode: bits br9-0 give a value n (n = 0 1023) to give a xtal clock division factor k: k = (n + 1) 2 enhanced mode: (version 3.x upwards) this consists of a 2 stage divider. the first stage is divisor n is determined by bits br5-br0 (n = 0 63) while the second stage divisor m is determined by bit br9 br6 (m = 0 15). the first stage divides the clock by integer number up to 63, where the second stage allows further division by powers of 2 (1, 2, 4, 8, 16, 32, 64, 128, , 32768). division by 1 using m = 0 is restricted to frequencies below 10 mhz (to be characterized). the xtal clock division factor k: k = (n + 1) 2 m the baud rate generator is typically used to derive clocks for dte or dce asynchronous baud rates with 16- oversampling mode. appendix a shows baud rates derived from typical xtal frequencies using the two modes of the baud rate generator for async operation with 16- oversampling enabled. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 145 07.96 receive length check register (rlcr) access: write address: ch-a: 35 h ch-b: 75 h address mask low (aml) (version 2 upwards) access: write address: ch-a: 36 h ch-b: 76 h value after reset: 00 h the receive address low byte (ral1) can be masked by setting corresponding bits in this mask register to allow extended broadcast address recognition. this feature is applicable in all operating modes with address recognition. the function is disabled if all bits of this register are set to zero (reset value). 70 rlcr rc rl6 rl0 rc receive check (on/off) 0 receive length check feature disabled 1 receive length check feature enabled rl6 rl0 receive length the maximum receive length after which data reception is suspended can be programmed here. the receive length is (rl + 1) 32 bytes, where rl is the value programmed via rl6-0. a frame exceeding this length is treated as if it was aborted by the opposite station (rme interrupt, rab bit set). in this case, the receive byte count (rbch, rbcl) is greater than the programmed receive length. 70 aml aml7 aml0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 146 07.96 address mask high (amh) (version 2 upwards) access: write address: ch-a: 37 h ch-b: 77 h value after reset: 00 h the function is similar to aml but with respect to register rah1. global interrupt status register (gis) access: read address: ch-a: 38 h ch-b: 78 h value after reset: 00 h this status register points to pending C channel assigned interrupts (isr0, isr1 of either channel) C universal port interrupts (pis). it is accessible via both channel addresses (38 h or 78 h ). as opposed to the real interrupt status registers (isr0, isr1, pis), its contents are not cleared after a read access. the bits in gis are individually reset when the corresponding interrupt status register (pis, isr1 for channel a, ) has been read. 70 amh amh7 amh0 70 gis pi 0 0 0 isa1 isa0 isb1 isb0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 147 07.96 interrupt vector address (iva) access: write address: ch-a: 38 h ch-b: 78 h value after reset: 00 h note: unused bits have to be set to logical 0. iva is accessible via both channel addresses (38 h or 78 h ). 70 iva t7 tv3 tv5 tv4 t3 0 0 0 t7 t3 interrupt vector address these bits define the value of bits 3 to 7 of the interrupt vector which is sent out on the data bus (d0 d7) during the interrupt acknowledge cycle. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 148 07.96 interrupt port configuration (ipc) access: read/write address: ch-a: 39 h ch-b: 79 h value after reset: 00 h note: unused bits have to be set to logical 0. ipc is accessible via both channel addresses (39 h or 79 h ). 70 ipc vis 0 0 sla1 sla0 casm ic1 ic0 vis masked interrupts visible 0 masked interrupt status bits are not visible 1 masked interrupt status bits are visible (refer to chapter 3.3 ). sla1 sla0 slave address only used in slave cascading mode (refer to casm). casm cascading mode 0 slave cascading mode pins ie0, ie1 are used as inputs. interrupt acknowledge is accepted if an interrupt signal has been generated and the values on pins ie0 and ie1 correspond to the programmed values in sla0, sla1 (slave address). 1 daisy chaining mode pin ie0 as interrupt enable output and pin ie1 as interrupt enable input are used for building a daisy chain. interrupt acknowledge is accepted if an interrupt signal has been generated and interrupt enable input ie1 is active high during a subsequent inta cycle(s). if pin int goes active, interrupt enable output ie0 is immediately set low. ic1 ic0 interrupt port configuration these bits define the function of the interrupt output stage (pin int): ioc1 ioc0 function x 0 1 0 1 1 open drain output push/pull output, active low push/pull output, active high hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 149 07.96 interrupt status register 0 (isr0) access: read address: ch-a: 3a h ch-b: 7a h value after reset: 00 h all bits are reset when isr0 is read. additionally, rme and rpf are reset when the corresponding interrupt vector is output. note: if bit ipc:vis is set to 1, interrupt statuses in isr0 may be flagged although they are masked via register imr0. however, these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. 70 isr0 rme rfs rsc pce plla cdsc rfo rpf rme receive message end one complete message of length less than 32 bytes, or the last part of a frame at most 32 bytes long including the status byte is stored in the receive fifo. the complete message length can be determined reading the rbch, rbcl registers, the number of bytes currently stored in rfifo is given by rbc4 ... 0. additional information is available in the rsta byte, stored in the rfifo as the last byte of each frame. rfs receive frame start this is an early receiver interrupt activated after the start of a valid frame has been detected, i.e. after an address match (in operation modes providing address recognition), or after the opening flag (transparent mode 0) is detected, delayed by two bytes. after an rfs interrupt, the contents of ? rhcr ? ral1 ? rsta-bits 3 0 are valid and can be read by the cpu. rsc receive status change (significant in auto-mode only) a status change (receiver ready/receiver not ready) of the remote station has been detected by receiving a rr/rnr supervisory frame. the actual status can be read from the star register (rrnr bit). hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 150 07.96 pce protocol error (significant in auto-mode only) the escc2 has detected a protocol error, i.e. it has received C an s- or i-frame with incorrect n(r) C an s-frame containing an i-field. plla dpll asynchronous this bit is only valid when the receive clock is supplied by the dpll and fm0, fm1 or manchester data encoding is selected. it is set when the dpll has lost synchronization. reception is disabled (receiver aborted) until synchronization has been regained. additionally, transmission is also interrupted if the transmit clock is derived from the dpll. cdsc carrier detect status change indicates that a state transition has occurred on cd. the actual state can be read from the vstr register. rfo receive frame overflow at least one complete frame was lost because no storage space was available in the rfifo. this interrupt can be used for statistical purposes and indicates that the cpu does not respond quickly enough to an rpf or rme interrupt. rpf receive pool full 32 bytes of a frame have arrived in the receive fifo. the frame is not yet completely received. note: this interrupt is only generated in interrupt mode. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 151 07.96 interrupt status register 1 (isr1) access: read address: ch-a: 3b h ch-b: 7b h value after reset: 00 h all bits are reset when isr1 is read. additionally, xpr is reset when the corresponding interrupt vector is output. note: if bit ipc:vis is set to 1, interrupt statuses in isr1 may be flagged although they are masked via register imr1. however, these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. 70 isr1 eop olp/ rdo aolp/ alls xdu/ exe tin csc xmr xpr eop end of poll sequence detected only valid if sdlc loop mode is selected. it is set if an eop sequence has been received. olp/rdo on loop only valid if sdlc loop mode is selected. it is set in response to a go on loop command, but not before an eop sequence has been received. it is also set when returning from the active on loop state. all incoming bits on rxd are reflected onto txd with one bit delay. receive data overflow not applicable in sdlc loop mode this interrupt status is an early warning that data has been lost. it is classified as group 7 or group 8 interrupt. even when this interrupt status is generated, the frame continues to be received when space in the rfifo is available again. note: whereas the bit rsta:rdo in the frame status byte indicates whether an overflow occurred when receiving the frame currently accessed in the rfifo, the isr1:rdo interrupt status is generated as soon as an overflow occurs and does not necessarily pertain to the frame currently accessed by the processor or the dma controller. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 152 07.96 aolp/alls active on loop only valid if sdlc loop mode is selected. it is set in response to a go active on loop command, but not before an eop sequence has been received. txd is disconnected from rxd and transmission of flags or data is started. all sent only valid if sdlc loop mode is not selected. this bit is set C if the last bit of the current frame is completely sent out on txd and xfifo is empty (non-auto mode, transparent modes), C if an i-frame is completely sent out on txd and a positive acknowledgement has been received (auto mode), C in auto-mode, if an i-frame has been sent and a timer interrupt (tin) is generated because the internal timer expires before an acknowledgement is received: in this case alls is generated one clock period after (tin). xdu/exe transmit data underrun/extended transmission end transmitted frame was terminated with an abort sequence because no data was available for transmission in xfifo and no xme was issued (interrupt mode) or dma request was not satisfied in time (dma mode). note: transmitter and xfifo are reset and deactivated if this condition occurs. they are reactivated not before this interrupt status register has been read. thus, xdu should not be masked via register imr1. in extended transparent mode, this bit indicates the transmission-end condition (exe). tin timer interrupt the internal timer and repeat counter has expired (see also description of timr register). hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 153 07.96 csc clear to send status change indicates that a state transition has occurred on cts. the actual state can be read from star register (cts bit). xmr transmit message repeat the transmission of the last frame has to be repeated because C the escc2 has received a negative acknowledgement to an i-frame in auto-mode, or C a collision has occurred after at least one fifo block of data has been completely transmitted, and thus an automatic re-transmission cannot be attempted, or C cts (transmission enable) has been withdrawn after at least one fifo block of data has been transmitted and the frame has not been completed. note: for easier recovery in the case of a collision, xfifo should not contain data of more than one frame. the use of alls interrupt is therefore recommended. xpr transmit pool ready a data block of up to 32 bytes can be written to the transmit fifo. xpr enables the fastest access to xfifo. it has to be used for transmission of long frames, back-to-back frames or frames with shared flags. however, starting transmission of a new frame should be initiated after alls interrupt instead of xpr C in auto mode C in bus configurations C if contents of xfifo have to be unique, e.g. for automatic repetition of the last frame in case of bus collisions or cts control (see also xmr interrupt). note: it is not possible to send transparent, or i-frames when a xmr or xdu interrupt remains unacknowledged. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 154 07.96 interrupt mask register 0, 1 (imr0,1) access: write address: ch-a: 3a h (imr0), 3b h (imr1) ch-b: 7a h (imr0), 7b h (imr1) value after reset: ff h , ff h each interrupt source can generate an interrupt signal at port int (function of the output stage is defined via register ipc). each source in imr0 or imr1 sets the mask active for the interrupt status in isr0 or isr1. masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are they visible in register gis. moreover, they will C not be displayed in the interrupt status register if bit ipc:vis is set to 0 C be displayed in the interrupt status register if bit ipc:vis is set to 1. note: after reset, all interrupts are dis abled. port value register (pvr) access: read/write address: ch-a: 3c h ch-b: 7c h each of the above bits is assigned to the universal port pin (p0 p7) with the same number. read access pvr shows the value of all pins (input and output). input values can be separated via software by and-ing pcr and pvr. write access pvr accepts values for all output pins (defined via pcr). values written to input pin locations are ignored. 70 imr0 rme rfs rsc pce plla cdsc rfo rpf mr1 eop olp/ rdo aolp/ alls xdu/ exe tin csc xmr xpr 70 pvr pvr7 pvr0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 155 07.96 port interrupt status register (pis) access: read address: ch-a: 3d h ch-b: 7d h each of the above bits is assigned to the universal port pin (p0 p7) with the same number. bit pisn is set and an interrupt is generated on int if C the corresponding universal port pin pn is defined as input via register pcr and C the interrupt source is enabled by resetting the corresponding interrupt mask pimn in register pim and C a state transition has occurred on pin pn. for definite detection of a real state transition, pulse width should not be shorter than 20 ns. note: bits pisn are reset when register pis is read. masked interrupts are not indicated when pis is read. instead, they remain internally stored and pending. a pending interrupt is generated when the corresponding mask bit is reset to zero. however, if ipc:vis is set to 1, interrupt statuses in pis may be flagged although they are masked via register pim. these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. if more than one consecutive state transitions occur on the same pin before the pis register is read, only one interrupt request will be generated. 70 pis pis7 pis0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 156 07.96 port interrupt mask register (pim) access: write address: ch-a: 3d h ch-b: 7d h value after reset: ff h each of the above bits is assigned to the universal port pin (p0 p7) and to the bits of register pis with the same number. 0 interrupt source is enabled. 1 interrupt source is disabled. a 1 in a bit position of pim sets the mask active for the interrupt status in pis. mask interrupt statuses neither generate an interrupt vector or a signal on int, nor are they visible in register gis. moreover, they will C not be displayed in the interrupt status register if bit ipc:vis is set to 0, C be displayed in the interrupt status register if bit ipc:vis is set to 1. refer to description of register pis. note: after reset, all interrupt sources are dis abled. port configuration register (pcr) access: read/write address: ch-a: 3e h ch-b: 7e h value after reset: ff h each of the above bits is assigned to the universal port pin (p0 p7) with the same number. if bit pcrn (n = 0 7) is set to 0 pin pn is defined as output. 1 pin pn is defined as input. note: after reset, all pins of the universal port are defined as in puts. 70 pim pim7 pim0 70 pcr pcr7 pcr0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 157 07.96 channel configuration register 4 (ccr4) (version 2 upwards, otherwise unused) access: read/write address: ch-a: 3f h ch-b: 7f h value after reset: 00 h note: unused bits have to be set to 0. 70 ccr4 mck4 ebrg tst1 icd 0 0 rft1 rft0 mck4 master clock divide-by-4 (v3 upwards, otherwise unused) this bit is valid when master clock option is selected by setting ccr0:mce = 1. 0 (default) xtal 1-2 clock feeds the core logic and timer blocks. this causes the xtal frequency to be restricted to 10 mhz, thus limiting the highest baud rate to about 600 kbit/s. 1 xtal1-2 clock divide-by-4 feeds the core logic and timer blocks. this allows the device to function with xtal frequency up to 30 mhz. the baud rate generator is fed directly from the xtal and can thus be used to provide clocks for baud rates in excess of 2 mbaud in asynch oversampling mode. it also allows the timer block to operate at the highest resolution. ebrg enhanced baud rate generator mode (v3 upwards, otherwise unused) 0 (default) selects standard baud rate generator operation. see description of brg register. 1 selects enhanced baud rate generator. see description of brg register. tst1 test pin (v3 upwards, otherwise unused) write 0 for normal operation. icd invert polarity of carrier detect signal (v3 upwards) 0 (default) selects the current polarity for carrier detect cd (active high) 1 selects the invert polarity to be more consistent with other equipment, carrier detect cd (active low). as cd is a multifunctional pin, the icd bit may only be set if cd functionality is being used. hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 158 07.96 rft, rft0 ... rfifo threshold level the size of the accessible part of rfifo can be determined by programming these bits. the number of valid bytes after an rpf interrupt is given in the following table: the value of rft1,0 can be changed dynamically C if reception is not running (recommended: receiver is disabled by setting mode:rac to 0), or C after rme interrupt has been generated, but before the command cmdr:rmc is issued (dma controlled data transfer), or C after the current data block has been read, but before the command cmdr:rmc is issued (interrupt controlled data transfer). see note. note: it is seen that changing the value of rft1, 0 is possible even during the reception of one frame. the total length of the received frame can be always read directly in rbcl, rbch after an rpf interrupt, except when the threshold is increased during reception of that frame. the real length can then be inferred by noting which bit positions in rbcl are reset by an rmc command (see table below): rft1 rft0 size of accessible part of rfifo 0 0 1 1 0 1 0 1 32 bytes (reset value) 16 bytes 4 bytes 2 bytes rft1 rft0 bit positions in rbcl reset by a cmdr:rmc command 0 0 1 1 0 1 0 1 rbc4 ... 0 rbc3 ... 0 rbc1,0 rbc0 hdlc mode
sab 82532/saf 82532 detailed register description semiconductor group 159 07.96 10.2 status/control registers in async mode 10.2.1 register addresses address (a0 a6) register meaning refer to page channel a b read write 00 . . . 1f 40 . . . 5f rfifo xfifo receive/transmit fifo 161/163 20 60 star cmdr status register/command register 164/166 21 61 C C C 22 62 mode mode register 168 23 63 timr timer register 170 24 64 xon xon character 172 25 65 xoff xoff character 172 26 66 tcr termination character register 173 27 67 dafo data format 173 28 68 rfc rfifo control register 175 29 69 C C C 2a 6a rbcl xbcl receive byte count low/transmit byte count low 177/177 2b 6b rbch xbch receive/transmit byte count high 178/179 2c 6c ccr0 channel configuration register 0 180 2d 6d ccr1 channel configuration register 1 181 2e 6e ccr2 channel configuration register 2 182 2f 6f ccr3 channel configuration register 3 184 async mode
sab 82532/saf 82532 detailed register description semiconductor group 160 07.96 note: read access to unused register addresses: value should be ignored, write access to unused register addresses: should be avoided, or set to 00 h . 30 70 C tsax time-slot assignment register transmit 184 31 71 C tsar time-slot assignment register receive 185 32 72 C xccr transmit channel capacity register 185 33 73 C rccr receive channel capacity register 186 34 74 vstr bgr version status/baud rate generator register 186/187 35 75 C tic transmit immediate character 188 36 76 C mxn mask xon character 189 37 77 C mxf mask xoff character 189 38 78 gis 1) iva 1) global interrupt status/interrupt vector address 190/190 39 79 ipc 1) interrupt port configuration 191 3a 7a isr0 imr0 interrupt status 0/interrupt mask 0 192/195 3b 7b isr1 imr1 interrupt status 1/interrupt mask 1 193/195 3c 7c pvr port value register 195 3d 7d pis 1) pim 1) port interrupt status/port interrupt mask 196/197 3e 7e pcr 1) port configuration register 197 3f 7f ccr4 channel configuration register 4 198 1) both channel assigned addresses enable access to the same register(s). 10.2.1 register addresses (contd) address (a0 a6) register meaning refer to page channel a b read write async mode
sab 82532/saf 82532 detailed register description semiconductor group 161 07.96 10.2.2 register definitions receive fifo (rfifo) access: read address: ch-a: 00 ... 1f h ch-b: 40 ... 5f h received data stored in rfifo (lsb is received first) can be organized in one of two selectable ways (refer to figure 51 ): C pure data up to a character length of 8 bits (incl. optional parity) C additionally, one status byte per character with information about parity (if enabled), parity error and framing error. reading data from rfifo can be done in 8-bit (byte) or 16-bit (word) access depending on the selected bus interface mode. the lsb is received first from the serial interface. figure 51 organization of rfifo async mode
sab 82532/saf 82532 detailed register description semiconductor group 162 07.96 interrupt controlled data transfer (interrupt mode) selected if dma bit in xbch is reset. up to 32 bytes/16 words of received data can be read from the rfifo following a rpf or a tcd interrupt depending on the selected rfifo mode (refer to rfc register): rpf interrupt: a fixed number of bytes/words (programmed threshold level rfth0, 1) has to be read by the cpu. tcd interrupt: termination character detected. the received data stream is monitored for termination character (programmable via register tcr). the number of valid bytes in rfifo is determined by reading the rbcl register. if necessary, the cpu can access the rfifo by issuing rfifo read command (cmdr.rfrd) before threshold level or the termination condition is reached. the number of valid bytes is determined by reading the rbcl register. additional information: star:rfne: rfifo not empty. dma controlled data transfer (dma mode) selected if dma bit in xbch is set. if the rfifo contains the number of bytes/words defined via the threshold level, the escc2 autonomously requests a dma block data transfer by dma by activating the drrn line until the last valid data is read (the ddrn line remains active up to the beginning of the last read cycle). this forces the dma controller to continuously perform bus cycles till all data is transferred from the escc2 to the system memory (level triggered transfer mode of dma controller). if the end condition (tcd) is reached, the same procedure as above is performed. drrn is activated until the termination character is transferred. a tcd interrupt is issued after the last data has been transferred. generation of further dma requests is blocked until tcd interrupt has been acknowledged by issuing an rmc command. the valid byte count of the last block can be determined by reading the rbcl register following the tcd interrupt. note: addresses within the 32-byte address space of the fifos point all to the same byte/word, i.e. current data can be accessed with any address within the valid scope. async mode
sab 82532/saf 82532 detailed register description semiconductor group 163 07.96 transmit fifo (xfifo) access: write address: ch-a: 00 ... 1f h ch-b: 40 ... 5f h writing data to xfifo can be in 8-bit (byte) or 16-bit (word) access depending on the selected bus interface mode. the lsb is transmitted first. interrupt mode selected if dma bit in xbch is reset. up to 32 bytes/16 words of transmit data can be written to the xfifo following an xpr interrupt. dma mode selected if dma bit in xbch is set. prior to any data transfer, the actual byte count to be transmitted must be written to the xbch, xbcl registers by the user. correct transmission of data in the case of word access and of an odd number of bytes specified in xbch, xbcl is guaranteed. if data transfer is then initiated via the cmdr register (command xf), the escc2 autonomously requests the correct amount of block data transfers (n bw + rest; bw = 32, 16; n = 0, 1, ). note: addresses within the 32-byte address space of the fifo all point to the same byte/word, i.e. current data can be accessed with any address within the valid range. async mode
sab 82532/saf 82532 detailed register description semiconductor group 164 07.96 status register (star) access: read address: ch-a: 20 h ch-b: 60 h value after reset: 40 h 70 star xdov xfw rfne fcs tec cec cts 0 xdov transmit data overflow more than 32 bytes have been written to the xfifo. this bit is reset by: C a transmitter reset command xres C or when all bytes in the accessible half of the xfifo have been moved into the inaccessible half. xfw transmit fifo write enable data can be written to the xfifo. note: in extended transparent mode for xfifo write access control, the xpr interrupt should be used instead of xfw bit. rfne rfifo not empty this bit is set if the accessible part of rfifo holds at least one valid byte. fcs flow control status if in-band flow control is enabled via bit mode.flon, this status bit indicates the current state of the transmitter: 0 the transmitter is in xon state, i.e. transmission is enabled or running. 1 the transmitter is in xoff state, i.e. transmission is stopped and disabled until an xon character is detected by the receiver. async mode
sab 82532/saf 82532 detailed register description semiconductor group 165 07.96 tec tic executing this status bit indicates that transmission instruction of currently programmed tic (transmit immediate character) is accepted but not completely executed. further access to register tic is only allowed after star:tec has been reset by the escc2. note: status flag tec is set immediately with the write access to register tic. it remains active until the transmitter of escc2 is able to start transmission of currently programmed tic. best case: tec remains set for at most 2.5 clock periods (transmit clock or master clock, depending of the selected mode) if transmission of the programmed tic character can be started immediately. the function of register tic and status flag tec is independent of whether flow control is enabled or not. cec command executing 0 no command is currently being executed, the cmdr register can be written to. 1 a command (written previously to cmdr) is currently being executed, no further command can be temporarily written into cmdr register. note: cec will be active at most 2.5 transmit clock periods. if the escc2 is in power-down mode cec will stay active. cts clear to send state this bit indicates the state of the cts pin. 0 cts is inactive (high) 1 cts is active (low). async mode
sab 82532/saf 82532 detailed register description semiconductor group 166 07.96 command register (cmdr) access: write address: ch-a: 20 h ch-b: 60 h value after reset: 00 h note: unused bits have to be set to logical 0. 70 cmdr rmc rres rfrd sti xf 0 0 xres rmc receive message complete confirmation from cpu to escc2 that the current frame or data block has been fetched following an rpf or rme interrupt, thus the occupied space in the rfifo can be released. note: in dma mode, this command has to be issued after an tcd interrupt in order to enable the generation of further receiver dma requests. rres receiver reset all data in rfifo and async receiver is deleted. rfrd receive fifo read enable the cpu can have access to rfifo by issuing the rfrd command before threshold level or the end condition (tcd) are fulfilled. after issuing the rfrd command the cpu has to wait for tcd interrupt, before reading rbc and rfifo. the number of valid bytes is determined by reading the rbcl register. additionally, a tcd interrupt is generated if enabled. sti start timer the internal timer is started. note: the timer is stopped by rewriting the timr register after start. async mode
sab 82532/saf 82532 detailed register description semiconductor group 167 07.96 note: the maximum time between writing to the cmdr register and the execution of the command is 2.5 clock cycles. therefore, if the cpu operates with a very high clock rate in comparison with the esccs clock, it is recommended to check the cec bit of the star register before writing to the cmdr register to avoid any loss of commands. xf transmit frame ? interrupt mode after having written up to 32 bytes/16 words to the xfifo, this command initiates the transmission of data. ? dma mode after having written the amount of data to be transmitted to the xbch, xbcl registers, this command initiates the data transfer from system memory to escc2 by dma. serial data transmission starts as soon as 32 bytes/16 words are stored in the xfifo or the transmit byte counter value is reached. xres transmitter reset xfifo is cleared of any data and idle (logical 1s) is transmitted. this command can be used by the cpu to abort current data transmission. in response to xres an xpr interrupt is generated. async mode
sab 82532/saf 82532 detailed register description semiconductor group 168 07.96 mode register (mode) access: read/write address: ch-a: 22 h ch-b: 62 h value after reset: 00 h note: unused bits have to be set to logical 0. 70 mode 0 frts fcts flon rac rts trs tlp frts flow control using rts (v3.x, otherwise unused) this bit is used in combination with the rts bit as follows: frts rts 0 0 the rts pin is controlled by the device autonomously and is activated rts = low) when data is loaded in the xfifo (default state) 1 0 rts pin is controlled by the device autonomously for bidirectional flow control and is forced active when shadow part of rfifo is empty and forced inactive ( rts = high) when the rfifo has reached a threshold (see chapter 6.4.3 ). 0 1 by setting this combination, the software can force the rts pin to active state (low). 1 1 by setting this combination, the software can force the rts pin to inactive state (high). fcts flow control using cts (v3.x, otherwise unused) 0 (default) the transmitter is stopped if cts signal is high. see chapter 6.4.3 . 1 the transmitter is active continuously and disregards the condition of cts signal. if mode.flon=1 then flow control is provided by using xon, xoff characters. async mode
sab 82532/saf 82532 detailed register description semiconductor group 169 07.96 flon flow control on the in-band flow control is activated via this bit: 0 no further action is automatically taken by the escc2. however, recognition of an xon or an xoff character (defined via registers xon and xoff) causes always a corresponding maskable interrupt status to be generated (refer to register isr1). 1 the reception of an xoff character (defined via register xoff) automatically turns off the transmitter after the currently transmitted character (if any) has been completely shifted out (xoff state). the reception of an xon character (defined via register xon) automatically makes the transmitter resume transmitting (xon state). rac receiver active switches the receiver to operational or inoperational state. 0 receiver inactive 1 receiver active rts request to send defines the state and control of rts pin. 0 the rts pin is controlled by the escc2 autonomously. rts is activated when data transmission starts and deactivated when transmission is completed. 1 the rts pin is controlled by the cpu. if this bit is set, the rts pin is activated immediately and remains active till this bit is reset. trs timer resolution selects the resolution of the internal timer (factor k, see description of timr register): 0 k = 32 768 1 k = 512 tlp test loop input and output of the async channels are internally connected. (transmitter channel a C receiver channel a/ transmitter channel b C receiver channel b). async mode
sab 82532/saf 82532 detailed register description semiconductor group 170 07.96 timer register (timr) access: read/write address: ch-a: 23 h ch-b: 63 h 70 timr cnt value value (5 bits) sets the time period t 1 as follows: t 1 = k (value + 1) tcp where C k is the timer resolution factor which is either 32 768 or 512 clock cycles dependent on the programming of trs bit in mode. C tcp is the clock period of transmit data (ccr0:mce = 0) or master clock (ccr0:mce = 1). cnt (3 bits) cnt plus value determine the time period t 2 after which a timer interrupt will be generated. the time period t 2 is t 2 = 32 k cnt tcp + t 1 . if cnt is set to 7, a timer interrupt is periodically generated after the expiration of t 1 . async mode
sab 82532/saf 82532 detailed register description semiconductor group 171 07.96 version 3.x: timr timer register (read/write) is unchanged. however the input to the timer function can be optionally selected to be xtal/4 in master clock mode by setting ccr0:mce = 1 and ccr4:mck4 = 1. with ccr4:mck4 = 1 in master clock mode, xtal clock divide-by-4 is fed to the timer block. the xtal clock feeds the baud rate generator which is used to select the transmit and received baud rate and generates the 16- oversampling clock. by this means, a xtal clock of 30 mhz can be used while maintaining the core logics clock operation limit of 10 mhz. value (5 bits) sets the time period t 1 as follows: with ccr4:mck4 = 0 and default condition, the timer value is given by the equation t 1 = k (value + 1) tcp where C k is the timer resolution factor which is either 32 768 (if mode:trs = 0) or 512 (if mode:trs = 1) clock cycles. C tcp is the clock period of the timer clock. non master clock mode (ccr0:mce = 0) timer clock period (tcp) = transmit clock period master clock mode (ccr0:mce = 1) if ccr4:mck4 = 0 (reset state) timer clock period (tcp) = xtal clock period if ccr4:mck4 = 1 timer clock period (tcp) = xtal clock period/4 cnt (3 bits) the cnt function is unchanged. async mode
sab 82532/saf 82532 detailed register description semiconductor group 172 07.96 xon character (xon) access: read/write address: ch-a: 24 h ch-b: 64 h value after reset: 00 h this register is used to specify the xon character. it can be used in conjunction with the interrupt status isr1:xon for automatic in-band flow control (if mode:flon = 0). the number of significant bits is determined by the programmed character length (right justified). a received character is considered to be recognized as a valid xon character C if it is correctly framed (correct length), C if its bits match the (unmasked) ones in the xon register over the programmed character length, C if it has correct parity (if applicable). received xon characters are always stored in the receive fifo, similar to other characters. xoff character (xoff) access: read/write address: ch-a: 25 h ch-b: 65 h value after reset: 00 h this register is used to specify the xoff character. it can be used in conjunction with the interrupt status isr1:xoff for automatic in-band flow control (if mode:flon = 1), or as a special character compare register for other purposes (if mode:flon = 0). the number of significant bits is determined by the programmed character length (right justified). a received character is considered to be recognized as a valid xoff character C if it is correctly framed (correct length), C if its bits match the (unmasked) ones in the xoff register over the programmed character length, C if it has correct parity (if applicable). received xoff characters are always stored in the receive fifo, similar to other characters. 70 xon xon7 xon0 70 xoff xoff7 xoff0 async mode
sab 82532/saf 82532 detailed register description semiconductor group 173 07.96 termination character register (tcr) access: read/write address: ch-a: 26 h ch-b: 66 h value after reset: 00 h data format (dafo) access: read/write address: ch-a: 27 h ch-b: 67 h value after reset: 00 h note: unused bits have to be set to logical 0. 70 tcr tcr7 tcr0 tcr7 tcr0 termination character if enabled via register rfc the received data stream is monitored for the occurrence of a programmed termination character. when such a character is found, an interrupt is issued if enabled via mask register imr0. the number of valid bytes in the rfifo up to and including the termination character is determined by reading the rbcl register. note: if selected character length is less than eight bits, leading (unused) bits of tcr have to be set to 0. 70 dafo 0 xbrk stop par1 par0 pare chl1 chl0 xbrk transmit break 0 normal operation for data transmission. 1 this command forces the txd pin to go low, regardless of any data being transmitted at this time. this command is executed immediately (with the next rising edge of transmit clock) and the transmitter is disabled. the current character is lost. however, the contents of xfifo are still available and are sent out as soon as this bit is reset. to avoid this, the transmit reset command xres should be issued. if xbrk is still set when xres is issued, the break signal on txd stays active. async mode
sab 82532/saf 82532 detailed register description semiconductor group 174 07.96 stop stop bit this bit defines the number of stop bits generated by the transmitter: 0 1 stop bit 1 2 stop bits. par1, par0 parity format if parity check/generation is enabled by setting pare, these bits define the parity type: 00 space (0) 01 odd parity 10 even parity 11 mark (1) the received parity bit is stored in rfifo C as leading bit immediately preceding the character if character length is 5 to 7 bits and rfc.dps is set to 0, and as lsb of the status byte pertaining to the character if the corresponding rfifo data format is enabled, C as lsb of the status byte pertaining to the character if character length is 8 bits and the corresponding rfifo data format is enabled. parity error is indicated in the msb of the status byte pertaining to the character, if enabled. additionally, a parity error interrupt can be generated. pare parity enable 0 parity check/generation disabled 1 parity check/generation enabled. chl1 chl0 character length these bits define the length of received and transmitted characters, excluding optional parity: 00 8 bit 01 7 bit 10 6 bit 11 5 bit. async mode
sab 82532/saf 82532 detailed register description semiconductor group 175 07.96 rfifo control register (rfc) access: read/write address: ch-a: 28 h ch-b: 68 h value after reset: 00 h note: unused bits have to be set to logical 0. 70 rfc 0 dps dxs rfdf rfth1 rfth0 0 tcde dps disable parity storage only valid if parity check/generation is enabled via dafo:pare and character length is less than 8 bits. 0 the parity bit is stored 1 the parity bit is not stored in the data byte of rfifo. note: the parity bit is always stored in the status byte. dxs disable storage of xon/xoff characters (v3.x only, otherwise unused) 0 (default) all received characters, including xon, xoff are stored in the rfifo. 1 any received xon/xoff characters will not be stored in the rfifo. rfdf rfifo data format 0 only data bytes (character plus optional parity up to 8 bit) are stored 1 additionally to every data byte, an attached status byte is stored. async mode
sab 82532/saf 82532 detailed register description semiconductor group 176 07.96 rfth1, rfth0 rfifo threshold level these bits define the level up to which rfifo is filled with valid data: if the threshold level is reached, the rpf interrupt is generated if enabled. after rpf is generated, the contents of rfifo (rfth bytes) can be read by the cpu. to indicate that this rfifo pool can be released, an rmc command has to be issued. tcde termination character detection enable when this bit is set, the received data stream is monitored for termination character (tcr register). when such a character occurs, the tcd interrupt is generated if enabled via mask register imr0. the number of bytes to be read from rfifo is determined by the value of rbcl. rfdf = 0 rfdf = 1 ? character 5 8 bit or ? characte r 5 7(8) 1) bit + parity 1) parity bit is lost. ? character 5 8 bit + status or ? character 5 7(8) 1) bit + parity + status 1) parity bit is in status byte. fe: framing error pe: parity error p: parity bit (p): can be disabled via bit dps 740 data byte (p) char 740 data byte (p) char 76 0 data byte pe fe p rfth1, 0 threshold level (bytes) rfdr = 0 rfdf = 1 00 01 10 11 1 4 16 32 (1d) (4d) (16d) (32d) 2 4 16 32 ( 1d + 1s) (2d + 2s) (8d + 8s) (16d + 16s) d: data byte s: status byte async mode
sab 82532/saf 82532 detailed register description semiconductor group 177 07.96 receive byte count low (rbcl) access: read address: ch-a: 2a h ch-b: 6a h indicates the number of valid bytes available in the accessible part of the rfifo. this register must be read by the cpu following a tcd interrupt. in case of a tcd interrupt the number of valid bytes in the accessible part of the rfifo can be evaluated by and-ing the contents of rbcl with: threshold level (bytes) C 1. rbc is reset with rmc after preceding tcd interrupt. in case of rpf interrupt rbc is incremented by threshold level (bytes). transmit byte count low (xbcl) access: write address: ch-a: 2a h ch-b: 6a h together with xbch (bits xbc11 xbc8) this register is used in dma mode only, to program the length (1 4096 bytes) of the next data block to be transmitted. in terms of the value xbc, programmed in xbc11 xbc0 (xbc = 0 4095), the length of the block in number of bytes is: length = xbc + 1. this allows the escc2 to request the correct amount of dma cycles after an xf command in cmdr. 70 rbcl rbc7 rbc0 threshold level mask 403 h 16 0f h 32 1f h 70 xbcl xbc7 xbc0 async mode
sab 82532/saf 82532 detailed register description semiconductor group 178 07.96 received byte count high (rbch) access: read address: ch-a: 2b h ch-b: 6b h value after reset: 000xxxxx 70 rbch dma 0 cas 0 rbc11 rbc8 see xbch dma, cas these bits represent the read-back value programmed in xbch rbc11 rbc8 receive byte count (most significant bits) no function in async mode. async mode
sab 82532/saf 82532 detailed register description semiconductor group 179 07.96 transmit byte count high (xbch) access: write address: ch-a: 2b h ch-b: 6b h value after reset: 000xxxxx note: unused bits have to be set to logical 0. 70 xbch dma 0 cas xc xbc11 xbc8 dma dma mode selects the data transfer mode of escc2 to/from system memory. 0 interrupt controlled data transfer (interrupt mode). 1 dma controlled data transfer (dma mode). cas carrier detect auto start when set, a high on the cd pin enables the corresponding receiver and data reception is started. when not set, if not in clock mode 1 or 5, the cd pin can be used as a general input. xc transmit continuously only valid if dma mode is selected. if the xc bit is set, the escc2 continuously requests for transmit data ignoring the transmit byte count programmed via xbch, xbcl. the byte count programmed via xbch, xbxl, however, must be set to a value different from 0. xbc11 xbc8 transmit byte count (most significant bits) valid only if dma mode is selected. together with xbcl (bits xbc7 xbc0), determine the number of characters to be transmitted. async mode
sab 82532/saf 82532 detailed register description semiconductor group 180 07.96 channel configuration register 0 (ccr0) access: read/write address: ch-a: 2c h ch-b: 6c h value after reset: 00 h note: unused bits have to be set to logical 0. 70 ccr0 pu mce 0 sc2 sc1 sc0 sm1 sm0 pu switches between power-up and power-down mode 0 power-down (standby) 1 power-up (active). mce master clock enable if this bit is set to 1, the clock provided via pin xtal1 works as master clock to allow full functionality of the microprocessor interface (access to all status and control registers, dma and interrupt support) independent of the receive and the transmit clocks. the internal oscillator in conjunction with a crystal on xtal1C2 can be used, too. the master clock option is not applicable in clock mode 5. refer to table 5 for more details. note: the internal timers run with the master clock. sc2 sc0 serial port configuration 000 nrz data encoding 001 (not recommended) 010 nrzi data encoding 011 (not recommended) 100 fm0 data encoding 101 fm1 data encoding 110 manchester data encoding 111 (not used). sm1 sm0 serial mode 00 hdlc/sdlc mode 01 sdlc loop mode 10 bisync mode 11 async mode. async mode
sab 82532/saf 82532 detailed register description semiconductor group 181 07.96 channel configuration register 1 (ccr1) access: read/write address: ch-a: 2d h ch-b: 6d h value after reset: 00 h note: unused bits have to be set to logical 0. 70 ccr1 0 0 0 ods bcr cm2 cm0 ods output driver select defines the function of the transmit data pins (t da, t db) 0 txd pin is an open drain output. 1 txd pin is a push-pull output. bcr bit clock rate this bit is only valid in clock modes not using the dpll (0, 1, 3b, 4, 7b). 0 selects isochronous operation with a bit clock rate = 1. data is sampled once. 1 selects standard asynchronous operation with a bit clock rate = 16. data is sampled 3 times around the nominal bit center. the effective bit value is determined by majority decision. for correct operation, nrz data encoding has to be selected. cm2 cm0 clock mode selects one of 8 different clock modes: 000 clock mode 0 . . . . . . 111 clock mode 7 note: clock mode 5 is only specified for versions sab/saf 82532 n-10 and sab/saf 82532 h-10, but not for versions sab 82532 n and sab 82532 h. async mode
sab 82532/saf 82532 detailed register description semiconductor group 182 07.96 channel configuration register 2 (ccr2) access: read/write address: ch-a: 2e h ch-b: 6e h value after reset: 00 h the meaning of the individual bits in ccr2 depends on the clock mode selected via ccr1 as follows: note: unused bits have to be set to logical 0. ccr2 7 0 clock mode 0a, 1 soc1 soc0 0 0 0 rwx 0 div clock mode 0b, 2, 3, 6, 7 br9 br8 bdf ssel toe rwx 0 div clock mode 4 soc1 soc0 0 0 toe rwx 0 div clock mode 5 soc1 soc0 xcs0 rcs0 toe rwx 0 div soc1, soc2 special output in a bus configuration (selected via ccr0) defines the function of pin rts as follows: 0x rts output is activated during transmission of characters. 10 rts output is always high ( rts disabled). 11 rts indicates the reception of a data frame (active low). in a point-to-point configuration (selected via ccr0) the txd and rxd pins may be flipped. 0x data is transmitted on txd, received on rxd (normal case). 1x data is transmitted on rxd, received on txd. br9, br8 baud rate, bit 9 8 high order bits, see description of bgr register. xcs0, rcs0 transmit/receive clock shift, bit 0 together with xcs2, xcs1 (rcs2, rcs1) in tsax (tsar), determines the clock shift relative to the frame synchronization signal of the transmit (receive) time-slot. a clock shift of 0 7 bits is programmable (clock mode 5 only). async mode
sab 82532/saf 82532 detailed register description semiconductor group 183 07.96 bdf baud rate division factor 0 the division factor of the baud rate generator is set to 1 (constant). 1 the division factor is determined by br9 br0 bits in ccr2 and brg registers. ssel clock source select selects the clock source in clock modes 0, 2, 3, 6 and 7 (refer to table 5 ). toe txclk output enable 0 txclk pin is input 1 txclk pin is switched to output function if applicable to the selected clock mode (refer to table 5 ). rwx read/write exchange valid only in dma mode. if this bit is set, the C rd and wr pins are internally exchanged (siemens/intel bus interface) Cr/ w pin is inverted in polarity (motorola bus interface) while any dack input is active. this useful feature allows a simple interfacing to the dma controller. note: the rwx bit of both channels is or ed. div data inversion only valid if nrz data encoding is selected. data is transmitted and received inverted. async mode
sab 82532/saf 82532 detailed register description semiconductor group 184 07.96 channel configuration register 3 (ccr3) (version 2 upwards) access: read/write address: ch-a: 2f h ch-b: 6f h value after reset: 00 h note: unused bits have to be set to logical 0. time-slot assignment register transmit (tsax) access: write address: ch-a: 30 h ch-b: 70 h value after reset: 00 h note: this register is only used in clock mode 5! 70 ccr3 0 000000psd psd dpll phase shift disable only applicable in the case of nrz and nrzi encoding. if this bit is set to 1, the phase shift function of the dpll is disabled. in this case the windows for phase adjustment are extended. 70 tsax tsnx xcs2 xcs1 tsnx time-slot number transmit selects one of up 64 possible time-slots (00 h 3f h ) in which data is transmitted. the number of bits per time-slot can be programmed via xccr. xcs2 ... xcs1 ... transmit clock shift, bit 2 1 together with bit xcs0 in ccr2, transmit clock shift can be adjusted. async mode
sab 82532/saf 82532 detailed register description semiconductor group 185 07.96 time-slot assignment register receive (tsar) access: write address: ch-a: 31 h ch-b: 71 h value after reset: 00 h note: this register is only used in clock mode 5! transmit channel capacity register (xccr) access: write address: ch-a: 32 h ch-b: 72 h value after reset: 00 h note: this register is only used in clock mode 5! 70 tsar tsnr rcs2 rcs1 tsnr time-slot number receive defines one of up to 64 possible time-slots (00 h 3f h ) in which data is received. the number of bits per time-slot can be programmed via rccr. rcs2 ... rcs1 ... transmit clock shift, bit 2 1 together with bit rcs0 in ccr2, transmit clock shift can be adjusted. 70 xccr xbc7 xbc0 xbc7 xbc0 ... transmit bit number count, bit 7 0 defines the number of bits to be transmitted within a time-slot: number of bits = xbc + 1 (1 ... 256 bits/time-slot). async mode
sab 82532/saf 82532 detailed register description semiconductor group 186 07.96 receive channel capacity register (rccr) access: write address: ch-a: 33 h ch-b: 73 h value after reset: 00 h note: this register is only used in clock mode 5! version status register (vstr) access: read address: ch-a: 34 h ch-b: 74 h 70 rccr rbc7 rbc0 rbc7 rbc0 ... receive bit number count, bit 7 0 defines the number of bits to be transmitted within a time-slot: number of bits = rbc + 1 (1 ... 256 bits/time-slot). 70 vstr cd dpla 0 0 vn3 vn0 cd carrier detect this bit reflects the state of the cd pin. 1 cd active 0 cd inactive dpla dpll asynchronous this bit is only valid when the receive clock is supplied by the dpll and fm0, fm1 or manchester data encoding is selected. it is set when the dpll has lost synchronization. reception is not disabled (idle is inserted) until synchronization has been regained. additionally, transmission is interrupted, too, if the transmit clock is derived from the dpll (same effect as the deactivation of pin cts). vn3 vn0 version number of chip 0000 version 1 0001 version 2 0010 version 3.2 async mode
sab 82532/saf 82532 detailed register description semiconductor group 187 07.96 baud rate generator register (bgr) access: write address: ch-a: 34 h ch-b: 74 h 70 bgr br7 br0 br7 br0 baud rate, bits 7 0 the baud rate generator divisor consist of bits br0-7 from brg register and bits br8-9 from the ccr2 register. the baud rate generator has two modes of operation giving added flexibility. standard mode: bits br9-0 give a value n (n = 0 1023) to give a xtal clock division factor k: k=(n+1) 2 enhanced mode: this consists of a 2 stage divider. the first stage is divisor n is determined by bits br5 ... br0 ( n = 0 ... 63) while the second stage divisor m is determined by bit br9 br6 ( m=0 15). the first stage divides the clock by integer number up to 63, where the second stage allows further division by powers of 2 (1, 2, 4, 8, 16, 32, 64, 128 32768). division by 1 using m = 0 is restricted to frequencies below 10 mhz (to be characterized). the xtal clock division factor k: k=(n+1) 2 m the baud rate generator is typically used to derive clocks for dte or dce asynchronous baud rates with 16- oversampling mode. appendix a shows baud rates derived from typical xtal frequencies using the two modes of the baud rate generator for async operation with 16- oversampling enabled. async mode
sab 82532/saf 82532 detailed register description semiconductor group 188 07.96 transmit immediate character (tic) (version 2 upwards) access: write address: ch-a: 35 h ch-b: 75 h when a character is written into this register its contents are inserted in the outgoing character stream C immediately upon writing this register by the microprocessor if the transmitter is in idle state. if no further characters (xfifo contents) are to be transmitted, i.e. the transmitter returns to idle state after transmission of tic, an alls (all sent) interrupt will be generated, C after the end of a character currently being transmitted. this does not affect the contents of the xfifo. transmission of characters from xfifo is resumed after the contents of register tic are shifted out. transmission via this register is possible even when the transmitter is in xoff state (however, cts must be low). the tic register is an eight-bit register. the number of significant bits is determined by the programmed character length (right justified). parity value (if programmed) and selected number of stop bits are automatically appended, similar to the characters written in the xfifo. the usage of tic is independent of the flow control, i.e. is not affected by bit mode.flon. to control access to register tic, an additional status bit star:tec (tic executing) is implemented which indicates that transmission instruction of currently programmed tic is accepted but not completely executed. further access to register tic is only allowed if bit star:tec is reset by the escc2. 70 tic tic7 tic0 async mode
sab 82532/saf 82532 detailed register description semiconductor group 189 07.96 mask xon character (mxn) (version 2 upwards) access: write address: ch-a: 36 h ch-b: 76 h value after reset: 00 h this register is used to masked single bit positions of the xon character. refer to the description of the xon register. the number of significant bits is determined by the programmed character length (right justified). a 1 in the mask register has the effect that no comparison is performed between the corresponding bits in the received characters (dont cares) and the xon register. at reset, the mask register is zeroed, i.e. all bit positions are compared. mask xoff character (mxf) (version 2 upwards) access: write address: ch-a: 37 h ch-b: 77 h value after reset: 00 h this register is used to mask single bit positions of the xoff character. refer to the description of the xoff register. the number of significant bits is determined by the programmed character length (right justified). a 1 in the mask register has the effect that no comparison is performed between the corresponding bits in the received characters (dont cares) and the xoff register. at reset, the mask register is zeroed. i.e. all bit positions are compared. 70 mxn mxn7 mxn0 70 mxf mxf7 mxf0 async mode
sab 82532/saf 82532 detailed register description semiconductor group 190 07.96 global interrupt status register (gis) access: read address: ch-a: 38 h ch-b: 78 h value after reset: 00 h this status register points to pending C channel assigned interrupts: isa0 ? isr0, isa1 ? isr1 on channel a isb0 ? isr0, isb1 ? isr1 on channel b C universal port interrupts: pi ? pis. it is accessible via both channel addresses (38 h or 78 h ). as opposed to the real interrupt status registers (isr0, isr1, pis), its contents are not cleared after a read access. the bits in gis are individually reset when the corresponding interrupt status register has been read. interrupt vector address (iva) access: write address: ch-a: 38 h ch-b: 78 h value after reset: 00 h note: unused bit have to be set to logical 0. iva is accessible via both channel addresses (38 h or 78 h ). 70 gis pi 0 0 0 isa1 isa0 isb1 isb0 70 iva t7 t3 0 0 0 t3 t7 interrupt vector address these bits define the value of bits 3 to 7 of the interrupt vector which is sent out on the data bus (d0 d7) during the interrupt acknowledge cycle. async mode
sab 82532/saf 82532 detailed register description semiconductor group 191 07.96 interrupt port configuration (ipc) access: read/write address: ch-a: 39 h ch-b: 79 h value after reset: 00 h note: unused bits have to be set to logical 0. ipc is accessible via both channel addresses (39 h or 79 h ). 70 ipc vis 0 0 sla1 sla0 casm ic1 ic0 vis masked interrupts visible 0 masked interrupt status bits are not visible 1 masked interrupt status bits are visible. sla1 sla0 slave address only used in slave cascading mode (refer to casm). casm cascading mode 0 slave cascading mode pins ie0, ie1 are used as inputs. interrupt acknowledge is accepted if an interrupt signal has been generated and the values on pins ie0 and ie1 correspond to the programmed values. 1 daisy chaining mode pin ie0 as interrupt enable output and pin ie1 as interrupt enable input are used for building a daisy chain. interrupt acknowledge is accepted if an interrupt signal has been generated and interrupt enable input ie1 is active high during a subsequent inta cycle. if pin int goes active, interrupt enable output ie0 is immediately set to low. ic1 ico interrupt port configuration these bits define the function of the interrupt output stage (pin int): ioc1 ioc0 function x 0 1 0 1 1 open drain output push/pull output, active low push/pull output, active high async mode
sab 82532/saf 82532 detailed register description semiconductor group 192 07.96 interrupt status register 0 (isr0) access: read address: ch-a: 3a h ch-b: 7a h value after reset: 00 h all bits are reset when isr0 is read. additionally, tcd and rpf are reset when the corresponding interrupt vector is output. note: if bit ipc:vis is set to 1, interrupt statuses in isr0 may be flagged although they are masked via register imr0. however, these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. 70 isr0 tcd time perr ferr plla cdsc rfo rpf tcd termination character detected the termination character (tcr) has been received or the execution of the rfrd command issued before has been completed. a data block is now available in the rfifo. the actual block length can be determined by reading register rbcl first. time time out the time-out limit has been exceeded. if the respective mask bit is reset (i.e. time interrupt is enabled), the received data stream is monitored for exceeding the fixed time limit after the last character has been received (time limit = 4 cfl; character frame length cfl includes start bit, character length, parity bit and stop bits). perr parity error only valid if parity check/generation is enabled. if set, a character with parity error has been received. if enabled via rfdf, parity error information is stored in rfifo in the status byte pertaining to that character. ferr framing error this bit indicates that a character has been received with a framing error, i.e. the receiver has detected a 0 in a stop bit position. if enabled via rfdf, this information is stored in rfifo in the status byte pertaining to that character. async mode
sab 82532/saf 82532 detailed register description semiconductor group 193 07.96 interrupt status register 1 (isr1) access: read address: ch-a: 3b h ch-b: 7b h value after reset: 00 h all bits are reset when isr1 is read. additionally, xpr is reset when the corresponding interrupt vector is output. note: if bit ipc:vis is set 1, interrupt statuses in isr1 may be flagged although they are masked via register imr1. however, these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. plla dpll asynchronous this bit is only valid when the receive clock is supplied by the dpll and fm0, fm1 or manchester data encoding is selected. it is set when the dpll has lost synchronization. reception is disabled (idle is inserted) until synchronization has been regained. additionally, transmission is also interrupted if the transmit clock is derived from the dpll. cdsc carrier detect status change indicates that a state transition has occurred on cd. the actual state of cd can be read from the vstr register. rfo receive fifo overflow this interrupt is generated if rfifo is full and a further character is received. this interrupt can be used for statistical purposes and indicates that the cpu does not respond quickly enough to an rpf or tcd interrupt. rpf receive pool full this bit is set if rfifo is filled with data (character and optional status information) up to the programmed threshold level. note: this interrupt is only generated in interrupt mode. 70 isr1 brk brkt alls xoff tin csc xon xpr async mode
sab 82532/saf 82532 detailed register description semiconductor group 194 07.96 brk break this bit is set when a break signal C static low level for a time equal to (character length + parity + stop bit(s)) C is detected on rxd. brkt break terminated this bit is set when a break signal on rxd is terminated. alls all sent this bit is set when the xfifo is empty and the last character is completely sent out on t d. xoff xoff character detected this interrupt status indicates that the currently received character matches the value specified via register xoff. the function is independent of the programming of bit mode.flon. tin timer interrupt the internal timer has expired (see also description of timr register). csc clear to send status change indicates that a state transition has occurred on cts. the actual state of cts can be read from star register (cts bit). xon xon character detected this interrupt status indicates that the currently received character matches the value specified via register xon. the function is independent of the programming of bit mode.flon. xpr transmit pool ready a data block of up to 32 bytes can be written to xfifo. async mode
sab 82532/saf 82532 detailed register description semiconductor group 195 07.96 interrupt mask register 0, 1 (imr0, imr1) access: write address: ch-a: 3a h (imr0), 3b h (imr1) ch-b: 7a h (imr0), 7b h (imr1) value after reset: ff h , ff h note: unused bits have to be set to logical 1. each interrupt source can generate an interrupt signal at port int (function of the output stage is defined via register ipc). a 1 in a bit position of imr0 or imr1 sets the mask active for the interrupt status in isr0 or isr1. masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are they visible in register gis. moreover, they will C not be displayed in the interrupt status register if bit ipc:vis is set to 0 C be displayed in the interrupt status register if bit ipc:vis is set to 1 note: after reset, all interrupts are dis abled. port value register (pvr) access: read/write address: ch-a: 3c h ch-b: 7c h pvr is accessible via both channel addresses (3c h or 7c h ). each of the above bits is assigned to the universal port pin (p0 p7) with the same number. read access pvr shows the value of all pins (input and output). input values can be separated via software by and-ing pcr and pvr. write access pvr accepts values for all output pins (defined via pcr). values written to input pin locations are ignored. 70 imr0 tcd 1 perr scd plla cdsc rfo rpf imr1 1 1 alls xdu tin csc xmr xpr 70 pvr pvr7 pvr0 async mode
sab 82532/saf 82532 detailed register description semiconductor group 196 07.96 port interrupt status register (pis) access: read address: ch-a: 3d h ch-b: 7d h pis is accessible via both channel addresses (3d h or 7d h ). each of the above bits is assigned to the universal port pin (p0 p7) with the same number. bit pisn is set and an interrupt is generated on int if C the corresponding universal port pin pn is defined as input via register pcr and C the interrupt source is enabled by resetting the corresponding interrupt mask pimn in register pim and C a state transition has occurred on pin pn. for definite detection of a real state transition, pulse width should not be shorter than 20 ns. note: bits pisn are reset when register pis is read. masked interrupts are not normally indicated when pis is read. instead, they remain internally stored and pending. a pending interrupt is generated when the corresponding mask bit is reset to zero. however, if bit ipc:vis is set to 1, interrupt statuses in pis may be flagged although they are masked via register pim. these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. if more than one consecutive state transition occurs on the same pin before the pis register is read, only one interrupt request will be generated. 70 pis pis7 pis0 async mode
sab 82532/saf 82532 detailed register description semiconductor group 197 07.96 port interrupt mask register (pim) access: write address: ch-a: 3d h ch-b: 7d h value after reset: ff h pim is accessible via both channel addresses (3d h or 7d h ). each of the above bits is assigned to the universal port pin (p0 p7) and to the bits of register pis with the same number. 0 interrupt source is enabled. 1 interrupt source is disabled. a 1 in a bit position of pim sets the mask active for the interrupt status in pis. masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are they visible in register gis. moreover, they will C not be displayed in the interrupt status register if bit ipc:vis is set to 0 C be displayed in the interrupt status register if bit ipc:vis is set to 1. refer to description of register pis. note: after reset, all interrupt sources are dis abled. port configuration register (pcr) access: read/write address: ch-a: 3e h ch-b: 7e h value after reset: ff h pcr is accessible via both channel addresses (3e h or 7e h ). each of the above bits is assigned to the universal port pin (p0 p7) with the same number. if bit pcrn ( n=07) is set to 0 pin pn is defined as output 1 pin pn is defined as input. note: after reset, all pins of the universal port are defined as in puts. 70 pim pim7 pim0 70 pcr pcr7 pcr0 async mode
sab 82532/saf 82532 detailed register description semiconductor group 198 07.96 channel configuration register 4 (ccr4) (version 3 upwards, otherwise unused) access: read/write address: ch-a: 3f h ch-b: 7f h value after reset: 00 h note: unused bits have to be set to logical 0. 70 ccr4 mck4 ebrg tst1 icd 0 0 0 0 mck4 master clock divide-by-4 this bit is valid when master clock option is selected by setting ccr0:mce = 1. 0 (default) xtal 1-2 clock feeds the core logic and timer blocks. this causes the xtal frequency to be restricted to 10 mhz, thus limiting the highest baud rate to about 600 kbit/s. 1 xtal 1-2 clock divide-by-4 feeds the core logic and timer blocks. this allows the device to function with xtal frequency up to 30 mhz. the baud rate generator is fed directly from the xtal and can thus be used to provide clocks for baud rates in excess of 2 mbaud in asynch oversampling mode. it also allows the timer block to operate at the highest resolution. ebrg enhanced baud rate generator mode 0 (default) selects standard baud rate generator operation. see description of brg register. 1 selects enhanced baud rate generator. see description of brg register. tst1 test pin write 0 for normal operation. icd invert polarity of carrier detect signal 0 (default) selects the current polarity for carrier detect cd (active high). 1 selects the invert polarity to be more consistent with other equipment, carrier detect/cd (active low). as cd is a multifunctional pin, the icd bit may only be set if cd functionality is being used. async mode
sab 82532/saf 82532 detailed register description semiconductor group 199 07.96 10.3 status/control registers in bisync mode 10.3.1 register addresses address (a0 a6) register meaning refer to page channel a b read write 00 . . . 1f 40 . . . 5f rfifo xfifo receive/transmit fifo 201/203 20 60 star cmdr status register/command register 204/205 21 61 C pre preamble register 206 22 62 mode mode register 207 23 63 timr timer register 208 24 64 synl sync character low 210 25 65 synh sync character high 210 26 66 tcr termination character register 211 27 67 dafo data format 212 28 68 rfc rfifo control register 213 29 69 C C C 2a 6a rbcl xbcl receive byte count low/transmit byte count low 215/215 2b 6b rbch xbch receive/transmit byte count high 216/217 2c 6c ccr0 channel configuration register 0 218 2d 6d ccr1 channel configuration register 1 219 2e 6e ccr2 channel configuration register 2 220 2f 6f ccr3 channel configuration register 3 222 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 200 07.96 note: read access to unused register addresses: value should be ignored, write access to unused register addresses: should be avoided, or set to 00 h . 30 70 C tsax time-slot assignment register transmit 223 31 71 C tsar time-slot assignment register receive 224 32 72 C xccr transmit channel capacity register 224 33 73 C rccr receive channel capacity register 225 34 74 vstr bgr version status/baud rate generator register 226/227 35 75 C C C 36 76 C C C 37 77 C C C 38 78 gis 1) iva 1) global interrupt status/interrupt vector address 228/228 39 79 ipc 1) interrupt port configuration 229 3a 7a isr0 imr0 interrupt status 0/interrupt mask 0 230/232 3b 7b isr1 imr1 interrupt status 1/interrupt mask 1 231/232 3c 7c pvr port value register 233 3d 7d pis 1) pim 1) port interrupt status/port interrupt mask 234/235 3e 7e pcr 1) port configuration register 236 3f 7f ccr4 channel configuration register 237 1) both channel assigned addresses enable access to the same register(s). 10.3.1 register addresses (contd) address (a0 a6) register meaning refer to page channel a b read write bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 201 07.96 10.3.2 register definitions receive fifo (rfifo) access: read address: ch-a: 00 ... 1f h ch-b: 40 ... 5f h received data stored in rfifo (lsb is received first) can be organized in one of two selectable ways (refer to figure 51): C pure data up to a character length of 8 bits (incl. optional parity) C additionally, one status byte per character with information about parity and parity error (if enabled). reading data from rfifo can be done in 8-bit (byte) or 16-bit (word) access depending on the selected bus interface mode. the lsb is received first from the serial interface. figure 52 organization of rfifo bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 202 07.96 interrupt controlled data transfer (interrupt mode) selected if dma bit in xbch is set to 0. up to 32 bytes/16 words of received data can be read from the rfifo following a rpf or a tcd interrupt depending on the selected rfifo mode (refer to rfc register): rpf interrupt: a fixed number of bytes/words (programmed threshold level rfth0, 1) has to be read by the cpu. tcd interrupt: termination character detected. the received data stream is monitored for a termination character (programmable via register tcr). the number of valid bytes in rfifo is determined by reading the rbcl register. if necessary, the cpu can have access to rfifo by issuing rfifo read command (cmdr.rfrd) before threshold level or termination character condition is reached. the number of valid bytes is determined by reading the rbcl register. additional information: star:rfne: rfifo not empty. dma controlled data transfer (dma mode) selected if dma bit in xbch is set. if the rfifo contains the number of bytes/words defined by the threshold level, the escc2 autonomously requests a block data transfer by dma by activating the drrn line until the last valid data is read (the drrn line remains active up to the beginning of the last read cycle). this forces the dma controller to continuously perform bus cycles till all data is transferred from the escc2 to the system memory (level triggered transfer mode of dma controller). if the end condition (tcd) is reached, the same procedure as above is performed. drrn is activated until the termination character is transferred, at which time a tcd interrupt is generated. generation of further dma requests is blocked until tcd interrupt has been acknowledged by issuing an rmc command. the valid byte count of the last block can determined by reading the rbcl register following the tcd interrupt. note: addresses within the 32-byte address space of the fifo point all to the same byte/word, i.e. current data can be accessed with any address within the valid range. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 203 07.96 transmit fifo (xfifo) access: write address: ch-a: 00 ... 1f h ch-b: 40 ... 5f h writing data to xfifo can be done in 8-bit (byte) or 16-bit (word) access depending on the selected bus interface mode. the lsb is transmitted first. interrupt mode selected if dma bit in xbch is reset. up to 32 bytes/16 words of transmit data can be written to the xfifo following an xpr interrupt. dma mode selected if dma bit in xbch is set. prior to any data transfer, the actual byte count to be transmitted must be written to the xbch, xbcl registers by the user. correct transmission of the data in the case of word access and of an odd number of bytes specified in xbch, xbcl is guaranteed. if data transfer is then initiated via the cmdr register (command xf), the escc2 autonomously requests the correct amount of block data transfers (n bw + rest; bw = 32, 16; n = 0, 1, ). note: addresses within the 32-byte address space of the fifo point all to the same byte/word, i.e. current data can be accessed with any address within the valid range. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 204 07.96 status register (star) access: read address: ch-a: 20 h ch-b: 60 h value after reset: 40 h 70 star xdov xfw rfne sync 0 cec cts 0 xdov transmit data overflow more than 32 bytes have been written to the xfifo. this bit is reset by: C a transmitter reset command xres C or when all bytes in the accessible half of the xfifo have been moved into the inaccessible half. xfw transmit fifo write enable data can be written to the xfifo. rfne rfifo not empty this bit is set if the accessible part of rfifo holds at least one valid byte. sync synchronization status the bit is reset after the hunt command has been issued. it indicates that the receiver has lost synchronization and is searching for the presence of a syn character. if found, sync will be immediately set, the scd interrupt is generated (if enabled), and filling the rfifo with received data is started. cec command executing 0 no command is currently being executed, the cmdr register can be written to. 1 a command (written previously to cmdr) is currently being executed, no further command can be temporarily written into cmdr register. note: cec will be active at most 2.5 transmit clock periods. if the escc2 is in power-down mode cec will stay active. cts clear to send state this bit indicates the state of the cts pin. 0 cts is inactive (high) 1 cts is active (low). bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 205 07.96 command register (cmdr) access: write address: ch-a: 20 h ch-b: 60 h value after reset: 00 h 70 cmdr rmc rres rfrd sti xf hunt xme xres rmc receive message complete confirmation from cpu to escc2 that the current frame or data block has been fetched following an rpf or rme interrupt, thus the occupied space in the rfifo can be released. note: in dma mode, this command has to be issued after an tcd interrupt in order to enable the generation of further receiver dma requests. rres receiver reset all data in rfifo and receiver is deleted. the receiver returns to hunt state. rfrd receive fifo read enable the cpu can have access to rfifo by issuing the rfrd command before threshold level or the end condition (tcd) are fulfilled. after issuing the rfrd command the cpu has to wait for tcd interrupt, before reading rbc and rfifo. the number of valid bytes is determined by reading the rbcl register. sti start timer the internal timer is started. note: the timer is stopped by rewriting the timr register after start. xf transmit frame ? interrupt mode after having written up to 32 bytes/16 words to the xfifo, this command initiates the transmission of data. ? dma mode after having written the amount of data to be transmitted to the xbch, xbcl registers, this command initiates the data transfer from system memory to escc2 by dma. serial data transmission starts as soon as 32 bytes/16 words are stored in the xfifo or the transmit byte counter value is reached. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 206 07.96 note: the maximum time between writing to the cmdr register and the execution of the command is 2.5 clock cycles. therefore, if the cpu operates with a very high clock rate in comparison with the escc2s clock, it is recommended that the cec bit of the star register is checked before writing to the cmdr register to avoid any loss of commands. preamble register (pre) access: write address: ch-a: 21 h ch-b: 61 h value after reset: 00 h this register defines the 8-bit pattern which is sent out during preamble transmission (refer to register ccr3). hunt enter hunt phase this command forces the receiver to immediately go into the hunt state. synchronization is lost and the receiver starts searching for syn characters. xme transmit message end (used in interrupt mode only!) indicates that the data block written last to the transmit fifo completes the current frame. the escc2 can terminate the transmission operation properly by appending the crc sequence to the data. after that, idle is transmitted. in dma mode, the end of the frame is determined by the transmit byte count in xbch, xbcl, thus, xme is not used in this case. xres transmitter reset xfifo is cleared of any data and idle (logical 1s) is transmitted. this command can be used by the cpu to abort current data transmission. in response to xres an xpr interrupt is generated. 70 pre pr7 pr0 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 207 07.96 mode register (mode) access: read/write address: ch-a: 22 h ch-b: 62 h value after reset: 00 h note: unused bits have to be set to logical 0. 70 mode 0 0 slen bisnc rac rts trs tlp slen syn character length this bit selects the length of the syn character: 0 6 bit (monosync)/12 bit (bisync) 1 8 bit (monosync) /16 bit (bisync). bisnc enable bisync mode 0 monosync mode is enabled (6/8 bit syn character defined via register synl). 1 bisync mode is enabled (12/16 bit syn character defined via registers synl and synh). synl is received/ transmitted first. rac receiver active switches the receiver to operational or inoperational state. 0 receiver inactive 1 receiver active. rts request to send defines the state and control of rts pin. 0 the rts pin is controlled by the escc2 autonomously. rts is activated when data transmission starts and deactivated when transmission is completed. 1 the rts pin is controlled by the cpu. if this bit is set, the rts pin is activated immediately and remains active till this bit is reset. trs timer resolution selects the resolution of the internal timer (factor k, see description of timr register): 0 k = 32 768 1 k = 512 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 208 07.96 timer register (timr) access: read/write address: ch-a: 23 h ch-b: 63 h tlp test loop input and output of the serial interface are internally connected. (transmitter channel a - receiver channel a/ transmitter channel b - receiver channel b) 70 timr cnt value value (5 bits) sets the time period t 1 as follows: t 1 = k (value + 1) tcp where C k is the timer resolution factor which is either 32 768 or 512 clock cycles dependent on the programming of trs bit in mode. C tcp is the clock period of transmit data (ccr0:mce = 0) or master clock (ccr0:mce = 1). cnt (3 bits) cnt plus value determine the time period t 2 after which a timer interrupt will be generated. the time period t 2 is t 2 = 32 k cnt tcp + t 1 . if cnt is set to 7, a timer interrupt is periodically generated after the expiration of t 1 . bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 209 07.96 version 3.x: timr timer register (read/write) is unchanged. however the input to the timer function can be optionally selected to be xtal/4 in master clock mode by setting ccr0:mce = 1 and ccr4:mck4 = 1. with ccr4:mck4 = 1 in master clock mode, xtal clock divide-by-4 is fed to the timer block. the xtal clock feeds the baud rate generator which is used to select the transmit and received baud rate and generates the 16- oversampling clock. by this means, a xtal clock of 30 mhz can be used while maintaining the core logics clock operation limit of 10 mhz. value (5 bits) sets the time period t 1 as follows: with ccr4:mck4 = 0 and default condition, the timer value is given by the equation t 1 = k (value + 1) tcp where C k is the timer resolution factor which is either 32 768 (if mode:trs = 0) or 512 (if mode:trs = 1) clock cycles. C tcp is the clock period of the timer clock. non master clock mode (ccr0:mce = 0) timer clock period (tcp) = transmit clock period master clock mode (ccr0:mce = 1) if ccr4:mck4 = 0 (reset state) timer clock period (tcp) = xtal clock period if ccr4:mck4 = 1 timer clock period (tcp) = xtal clock period/4 cnt (3 bits) the cnt function is unchanged. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 210 07.96 syn character register low, high (synl, synh) access: read/write address: ch-a: 24 h (synl), 25 h (synh) ch-b: 64 h (synl), 65 h (synh) value after reset: 00 h ,00 h in conjunction with bit bisnc and bit slen the syn character can be specified: C monosync mode (bisnc = 0) the syn character is defined by synl. slen = 0: the syn character is specified by bits 0 5 slen = 1: the syn character is specified by bits 0 7. C bisync mode (bisnc = 1) the syn character is defined by synl (low byte) and synh (high byte). slen = 0: the 12-bit syn character is specified by bits 0 5 of both synl and synh. slen = 1: the 16-bit syn character is specified by bits 0 7 of both synl and synh. synl is received/transmitted first. in transmit direction, the syn character thus specified is sent continuously when no data are to be transmitted, if itf (interframe time fill) control bit is set to 1. in receive direction, the receiver searches for the specified syn character in the receive data stream, when in the hunt mode. 70 synl synl synh synh bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 211 07.96 termination character register (tcr) access: read/write address: ch-a: 26 h ch-b: 66 h value after reset: 00 h 70 tcr tcr7 tcr0 tcr7 tcr0 termination character if enabled via register rfc, the received data stream is monitored for the occurrence of a programmed termination character. when such a character is found, an interrupt is issued if enabled via mask register imr0. the number of valid bytes in the rfifo up to and including the termination character is determined by reading the rbcl register. note: if the selected character length is less than eight bits, leading (unused) bits of tcr have to be set to 0. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 212 07.96 data format (dafo) access: read/write address: ch-a: 27 h ch-b: 67 h value after reset: 00 h note: unused bits have to be set to logical 0. 70 dafo 0 0 0 par1 par0 pare chl1 chl0 par1, par0 parity format if parity check/generation is enabled by setting pare, these bits define the parity format: 00 space (0) 01 odd parity 10 even parity 11 mark (1) the received parity bit is stored in rfifo C as leading bit immediately preceding the character if character length is 5 to 7 bits and rfc.dps is set to 0, and as lsb of the status byte pertaining to the character if the corresponding rfifo data format is enabled, C as lsb of the status byte pertaining to the character if character length is 8 bits and the corresponding rfifo data format is enabled. parity error is indicated in the msb of the status byte pertaining to the character, if enabled. additionally, a parity error interrupt can be generated. pare parity enable 0 parity check/generation disabled 1 parity check/generation enabled. chl1 chl0 character length these bits define the length of received/transmitted characters, excluding optional parity: 00 8 bit 01 7 bit 10 6 bit 11 5 bit. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 213 07.96 rfifo control register (rfc) access: read/write address: ch-a: 28 h ch-b: 68 h value after reset: 00 h note: unused bits have to be set to logical 0. 70 rfc 0 dps sload rfdf rfth1 rfth0 0 tcde dps disable parity storage only valid if parity check/generation is enabled via dafo.pare and character length is less than 8 bits. 0 the parity bit is stored 1 the parity bit is not stored in the data byte of rfifo. note: the parity bit is always stored in the status byte. sload enable syn character load 0 all data except syn characters are stored in rfifo. 1 storage of all received syn characters to rfifo is enabled. rfdf rfifo data format 0 only data bytes (character plus optional parity up to 8 bit) are stored 1 additionally to every data byte, an attached status byte is stored. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 214 07.96 rfth1, rfth0 rfifo threshold level these bits define the level up to which rfifo is filled with valid data: if the threshold level is reached, the rpf interrupt is generated if enabled. after rpf is generated, the contents of rfifo (rfth bytes) can be read by the cpu. to indicate that this rfifo pool can be released, an rmc command has to be issued. tcde termination character detection enable when this bit is set, the received data stream is monitored for termination character (tcr register). when such a character occurs, the tcd interrupt is generated if enabled via mask register imr0. the number of bytes to be read from rfifo is determined by the value of rbcl. to activate reception again the command cmd.hunt has to be issued. rfdf = 0 rfdf = 1 ? character 5 8 bit or ? character 5 7(8) 1) bit + parity 1) parity bit is lost. ? characte r58 bit + status or ? characte r 5 7(8) 1) bit + parity + status 1) parity bit is in status byte. fe: framing error pe: parity error p: parity bit ( p ) : can be disabled via bit dps 740 data byte (p) char 740 data byte (p) char 70 data byte pe p rfth1, 0 threshold level (bytes) rfdr = 0 rfdf = 1 00 01 10 11 1 4 16 32 (1d) (4d) (16d) (32d) 2 4 16 32 ( 1d + 1s) (2d + 2s) (8d + 8s) (16d + 16s) d: data byte s: status byte bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 215 07.96 receive byte count low (rbcl) access: read address: ch-a: 2a h ch-b: 6a h indicates the number of valid bytes available in the accessible part of the rfifo. this register must be read by the cpu following a tcd interrupt. in case of a tcd interrupt the number of valid bytes in the accessible part of the rfifo can be evaluated by and-ing the contents of rbcl with: threshold level (bytes) C 1. rbc is reset with rmc after preceding tcd interrupt. in case of rpf interrupt rbc is incremented by threshold level (bytes). transmit byte count low (xbcl) access: write address: ch-a: 2a h ch-b: 6a h together with xbch (bits xbc11 xbc8) this register is used in dma mode only, to program the length (1 4096 bytes) of the next data block to be transmitted. in terms of the value xbc, programmed in xbc11 xbc0 (xbc = 0 4095), the length of the block in number of bytes is: length = xbc + 1. this allows the escc2 to request the correct amount of dma cycles after an xf command in cmdr. 70 rbcl rbc7 rbc0 threshold level mask 403 h 16 0f h 32 1f h 70 xbcl xbc7 xbc0 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 216 07.96 received byte count high (rbch) access: read address: ch-a: 2b h ch-b: 6b h value after reset: 000xxxxx 70 rbch dma 0 cas 0 rbc11 rbc8 see xbch dma, cas these bits represent the read-back value programmed in xbch rbc11 rbc8 receive byte count (most significant bits) no function. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 217 07.96 transmit byte count high ( xbch ) access: write address: ch-a: 2b h ch-b: 6b h value after reset: 000xxxxx note: unused bits have to be set to logical 0. 70 xbch dma 0 cas xc xbc11 xbc8 dma dma mode selects the data transfer mode of escc2 to/from system memory. 0 interrupt controlled data transfer (interrupt mode). 1 dma controlled data transfer (dma mode). cas carrier detect auto start when set, a high on the cd pin enables the corresponding receiver and data reception is started. when not set, if not in clock mode 1 or 5, the cd pin can be used as a general input. xc transmit continuously only valid if dma mode is selected. if the xc bit is set, the escc2 continuously requests for transmit data ignoring the transmit byte count programmed via xbch, xbcl. the byte count programmed via xbch, xbxl, however, must be set to a value different from 0. xbc11 xbc8 transmit byte count (most significant bits) valid only if dma mode is selected. together with xbcl (bits xbc7 xbc0), determine the number of characters to be transmitted. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 218 07.96 channel configuration register 0 (ccr0) access: read/write address: ch-a: 2c h ch-b: 6c h value after reset: 00 h note: unused bits have to be set to logical 0. 70 ccr0 pu mce 0 sc2 sc1 sc0 sm1 sm0 pu switches between power-up and power-down mode 0 power-down (standby) 1 power-up (active). mce master clock enable if this bit is set to 1, the clock provided via pin xtal1 works as master clock to allow full functionality of the microprocessor interface (access to all status and control registers and fifos, dma and interrupt support) independent of the receive and the transmit clocks. the internal oscillator in conjunction with a crystal on xtal1-2 can be used, too. the master clock option is not applicable in clock mode 5. refer to table 5 for more details. note: the internal timers run with the master clock. sc2 sc0 serial port configuration 000 nrz data encoding 001 (not recommended) 010 nrzi data encoding 011 (not recommended) 100 fm0 data encoding 101 fm1 data encoding 110 manchester data encoding 111 (not used). note: if bus configuration is selected, only nrz coding is supported. sm1 sm0 serial mode 00 hdlc/sdlc mode 01 sdlc loop mode 10 bisync mode 11 async mode. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 219 07.96 channel configuration register 1 (ccr1) access: read/write address: ch-a: 2d h ch-b: 6d h value after reset: 00 h note: unused bits have to be set to logical 0. 70 ccr1 0 0 0 ods itf cm2 cm0 ods output driver select defines the function of the transmit data pin (txda) 0 txd pin is an open drain output. 1 txd pin is a push-pull output. itf interframe time fill format determines the idle (= no data to send) state of the transmit data pin (txd) 0 continuous logical 1 is output. 1 continuous syn characters are output. cm2 cm0 clock mode selects one of 8 different clock modes: 000 clock mode 0 . . . . . . 111 clock mode 7 note: clock mode 5 is only specified for versions sab/saf 82532 n-10 and sab/saf 82532 h-10, but not for versions sab 82532 n and sab 82532 h. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 220 07.96 channel configuration register 2 (ccr2) access: read/write address: ch-a: 2e h ch-b: 6e h value after reset: 00 h the meaning of the individual bits in ccr2 depends on the clock mode selected via ccr1 as follows: note: unused bits have to be set to logical 0. ccr2 7 0 clock mode 0a, 1 soc1 soc0 0 0 0 rwx 0 div clock mode 0b, 2, 3, 6, 7 br9 br8 bdf ssel toe rwx 0 div clock mode 4 soc1 soc0 0 0 toe rwx 0 div clock mode 5 soc1 soc0 xcs0 rcs0 toe rwx 0 div soc1, soc2 special output in a bus configuration (selected via ccr0) defines the function of pin rts as follows: 0x rts output is activated during transmission. 10 rts output is always high ( rts disabled). 11 rts indicates the reception of a data frame (active low). in a point-to-point configuration (selected via ccr0) the txd and rxd pins may be flipped. 0x data is transmitted on txd, received on rxd (normal case). 1x data is transmitted on rxd, received on txd. br9, br8 baud rate, bit 9 8 high order bits, see description of bgr register. xcs0, rcs0 transmit/receive clock shift, bit 0 together with xcs2, xcs1 (rcs2, rcs1) in tsax (tsar), determines the clock shift relative to the frame synchronization signal of the transmit (receive) time-slot. a clock shift of 0 7 bits is programmable (clock mode 5 only). bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 221 07.96 bdf baud rate division factor 0 the division factor of the baud rate generator is set to 1 (constant). 1 the division factor is determined by br9 br0 bits in ccr2 and brg registers. ssel clock source select selects the clock source in clock modes 0, 2, 3, 6 and 7 (refer to table 5 ). toe txclk output enable 0 txclk pin is input 1 txclk pin is switched to output function if applicable to the selected clock mode (refer to table 5 ). rwx read/write exchange valid only in dma mode. if this bit is set, the C rd and wr pins are internally exchanged (siemens/intel bus interface) Cr/ w pin is inverted in polarity (motorola bus interface) while any dack input is active. this useful feature allows a simple interfacing to the dma controller. note: the rwx bit of both channels is or ed. div data inversion only valid if nrz data encoding is selected. data is transmitted and received inverted. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 222 07.96 channel configuration register 3 (ccr3) access: read/write address: ch-a: 2f h ch-b: 6f h value after reset: 00 h 70 ccr3 pre1 pre0 ept con crl capp crcm psd pre1 pre0 number of preamble repetition if preamble transmission is enabled, the preamble defined via register pre is transmitted 00 1 times 01 2 times 10 4 times 11 8 times. ept enable preamble transmission this bit enables transmission of a preamble. the preamble is started after interframe time fill transmission has been stopped and a new block of data is about to be transmitted. the preamble consists of an 8-bit pattern defined via register pre which is repeated a number of times selected by bits pre0 and pre1. con crc on this bit determines whether the current data written to xfifo has to be included into crc calculation or not. it has to be programmed before the assigned byte/word is written to xfifo. in the case of word access, both characters are included. since this control bit is copied in the xfifo every time a character is written, it is not necessary to reprogram it for each character when consecutive characters are to be either all included into or all excluded from crc calculation. 0 data not included 1 data included. crl crc reset level this bit defines the initialization for internal transmit crc generator. 0 initialized to ffff h . 1 initialized to 0000 h . note: the internal transmit crc generator is automatically initialized before transmission of a new frame starts. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 223 07.96 time-slot assignment register transmit (tsax) access: write address: ch-a: 30 h ch-b: 70 h value after reset: 00 h note: this register is only used in clock mode 5. capp crc append if this bit is set, the internal transmit crc generator is activated: 1. the crc generator is initialized every time the transmission of a new frame starts. initialization value is defined via bit crl. 2. during transmission all data with the con bit set to 1 are included into crc checksum calculation. 3. the checksum is automatically appended to the last transmitted data of the frame if a transmit message end command (xme) has been issued. crcm select crc algorithm selects the crc algorithm for the internal transmit crc generator: 0 crc-16 ( x 16 + x 15 + x 2 + 1) 1 ... crc-ccitt ( x 16 + x 12 + x 5 + 1) psd dpll phase shift disable only applicable in the case of nrz and nrzi encoding. if this bit is set to 1, the phase shift function of the dpll is disabled. in this case the windows for phase adjustment are extended. 70 tsax tsnx xcs2 xcs1 tsnx time-slot number transmit selects one of up 64 possible time-slots (00 h 3f h ) in which data is transmitted. the number of bits per time-slot can be programmed via xccr. xcs2 ... xcs1 ... transmit clock shift, bit 2 1 together with bit xcs0 in ccr2, transmit clock shift can be adjusted. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 224 07.96 time-slot assignment register receive (tsar) access: write address: ch-a: 31 h ch-b: 71 h value after reset: 00 h note: this register is only used in clock mode 5. transmit channel capacity register (xccr) access: write address: ch-a: 32 h ch-b: 72 h value after reset: 00 h note: this register is only used in clock mode 5. 70 tsar tsnr rcs2 rcs1 tsnr time-slot number receive defines one of up to 64 possible time-slots (00 h 3f h ) in which data is received. the number of bits per time-slot can be programmed via rccr. rcs2 ... rcs1 ... transmit clock shift, bit 2 1 together with bit rcs0 in ccr2, transmit clock shift can be adjusted. 70 xccr xbc7 xbc0 xbc7 xbc0 ... transmit bit number count, bit 7 0 defines the number of bits to be transmitted within a time-slot: number of bits = xbc + 1 (1 ... 256 bits/time-slot). bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 225 07.96 receive channel capacity register (rccr) access: write address: ch-a: 33 h ch-b: 73 h value after reset: 00 h note: this register is only used in clock mode 5! 70 rccr rbc7 rbc0 rbc7 rbc0 ... receive bit number count, bit 7 0 defines the number of bits to be transmitted within a time-slot: number of bits = rbc + 1 (1 ... 256 bits/time-slot). bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 226 07.96 version status register (vstr) access: read address: ch-a: 34 h ch-b: 74 h 70 vstr cd dpla 0 0 vn3 vn0 cd carrier detect this bit reflects the state of the cd pin. 1 cd active 0 cd inactive dpla dpll asynchronous this bit is only valid when the receive clock is supplied by the dpll and fm0, fm1 or manchester data encoding is selected. it is set when the dpll has lost synchronization. reception is not disabled, but all data stored to rfifo is altered to idle until synchronization has been regained. additionally, transmission is interrupted, too, if the transmit clock is derived from the dpll (same effect as the deactivation of pin cts). note: when the dpll returns to synchronous state the receiver is not automatically forced into hunt state. this has to be done by the user. vn3 vn0 version number of chip 0000 version 1 0001 version 2 0010 version 3.2 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 227 07.96 baud rate generator register (bgr) access: write address: ch-a: 34 h ch-b: 74 h 70 bgr br7 br0 br7 br0 baud rate, bits 7 0 the baud rate generator divisor consist of bits br0-7 from brg register and bits br8-9 from the ccr2 register. the baud rate generator has two modes of operation giving added flexibility. standard mode: bits br9C0 give a value n (n = 0 1023) to give a xtal clock division factor k: k=(n+1) 2 enhanced mode: this consists of a 2 stage divider. the first stage is divisor n is determined by bits br5 ... br0 ( n = 0 ... 63) while the second stage divisor m is determined by bit br9 br6 ( m=0 15). the first stage divides the clock by integer number up to 63, where the second stage allows further division by powers of 2 (1, 2, 4, 8, 16, 32, 64, 128 32768). division by 1 using m = 0 is restricted to frequencies below 10 mhz (to be characterized). the xtal clock division factor k: k=(n+1) 2 m the baud rate generator is typically used to derive clocks for dte or dce asynchronous baud rates with 16- oversampling mode. appendix a shows baud rates derived from typical xtal frequencies using the two modes of the baud rate generator for async operation with 16- oversampling enabled. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 228 07.96 global interrupt status register (gis) access: read address: ch-a: 38 h ch-b: 78 h value after reset: 00 h this status register points to pending C channel assigned interrupts: isa0 ? isr0, isa1 ? isr1 on channel a isb0 ? isr0, isb1 ? isr1 on channel b C universal port interrupts: pi ? pis. it is accessible via both channel addresses (38 h or 78 h ). as opposed to the real interrupt status registers (isr0, isr1, pis), its contents are not cleared after a read access. the bits in gis are individually reset when the corresponding interrupt status register has been read. interrupt vector address (iva) access: write address: ch-a: 38 h ch-b: 78 h value after reset: 00 h note: unused bit have to be set to logical 0. iva is accessible via both channel addresses (38 h or 78 h ). 70 gis pi 0 0 0 isa1 isa0 isb1 isb0 70 iva t7 t3 0 0 0 t3 t7 interrupt vector address these bits define the value of bits 3 to 7 of the interrupt vector which is sent out on the data bus (d0 d7) during the interrupt acknowledge cycle. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 229 07.96 interrupt port configuration (ipc) access: read/write address: ch-a: 39 h ch-b: 79 h value after reset: 00 h note: unused bits have to be set to logical 0. ipc is accessible via both channel addresses (39 h or 79 h ). 70 ipc vis 0 0 sla1 sla0 casm ic1 ic0 vis masked interrupts visible 0 masked interrupt status bits are not visible 1 masked interrupt status bits are visible. sla1 sla0 slave address only used in slave cascading mode (refer to casm). casm cascading mode 0 slave cascading mode pins ie0, ie1 are used as inputs. interrupt acknowledge is accepted if an interrupt signal has been generated and the values on pins ie0 and ie1 correspond to the programmed values. 1 daisy chaining mode pin ie0 as interrupt enable output and pin ie1 as interrupt enable input are used for building a daisy chain. interrupt acknowledge is accepted if an interrupt signal has been generated and interrupt enable input ie1 is active high during a subsequent inta cycle. if pin int goes active, interrupt enable output ie0 is immediately set to low. ic1 ico interrupt port configuration these bits define the function of the interrupt output stage (pin int): ioc1 ioc0 function x 0 1 0 1 1 open drain output push/pull output, active low push/pull output, active high bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 230 07.96 interrupt status register 0 (isr0) access: read address: ch-a: 3a h ch-b: 7a h value after reset: 00 h all bits are reset when isr0 is read. additionally, tcd and rpf are reset when the corresponding interrupt vector is output. note: if bit ipc:vis is set to 1, interrupt statuses in isr0 may be flagged although they are masked via register imr0. however, these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are they visible in register gis. 70 isr0 tcd 0 perr scd plla cdsc rfo rpf tcd termination character detected the termination character (tcr) has been received and a data block is now available in the rfifo. the actual block length can be determined by reading register rbcl first. perr parity error only valid if parity check/generation is enabled. if set, a character with parity error has been received. if enabled via rfdf, parity error information is stored in rfifo in the status byte pertaining to that character. scd syn character detected only valid in hunt mode. this bit is set if a syn character is found in the received data stream after the hunt command has been issued. the receiver now is in the synchronous state. plla dpll asynchronous this bit is only valid when the receive clock is supplied by the dpll and fm0, fm1 or manchester data encoding is selected. it is set when the dpll has lost synchronization. reception is disabled (idle is inserted) until synchronization has been regained. additionally, transmission is also interrupted if the transmit clock is derived from the dpll. cdsc carrier detect status change indicates that a state transition has occurred on cd. the actual state of cd can be read from the vstr register. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 231 07.96 interrupt status register 1 (isr1) access: read address: ch-a: 3b h ch-b: 7b h value after reset: 00 h all bits are reset when isr1 is read. additionally, xpr is reset when the corresponding interrupt vector is output. note: if bit ipc:vis is set 1, interrupt statuses in isr1 may be flagged although they are masked via register imr1. however, these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. rfo receive fifo overflow this interrupt is generated if rfifo is full and a further character is received. this interrupt can be used for statistical purposes and indicates that the cpu does not respond quickly enough to an rpf or tcd interrupt. rpf receive pool full this bit is set if rfifo is filled with data (character and optional status information) up to the programmed threshold level. note: this interrupt is only generated in interrupt mode. 70 isr1 0 0 alls xdu tin csc xmr xpr alls all sent this bit is set when the xfifo is empty and the last character is completely sent out on txd. xdu transmit data underrun a block of data in transmission has been terminated with idle, because the xfifo contains no further data. note: transmitter and xfifo are reset and deactivated if this condition occurs. they are reactivated not before this interrupt status register has been read. thus, xdu should not be masked via register imr1. bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 232 07.96 interrupt mask register 0, 1 (imr0, imr1) access: write address: ch-a: 3a h (imr0), 3b h (imr1) ch-b: 7a h (imr0), 7b h (imr1) value after reset: ff h , ff h note: unused bits have to be set to logical 1. each interrupt source can generate an interrupt signal at port int (function of the output stage is defined via register ipc). a 1 in a bit position of imr0 or imr1 sets the mask active for the interrupt status in isr0 or isr1. masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are they visible in register gis. moreover, they will C not be displayed in the interrupt status register if bit ipc:vis is set to 0 C be displayed in the interrupt status register if bit ipc:vis is set to 1 note: after reset, all interrupts are dis abled. tin timer interrupt the internal timer has expired (see also description of timr register). csc clear to send status change indicates that a state transition has occurred on cts. the actual state of cts can be read from star register (cts bit). xmr transmit message repeat the transmission of the last block of characters has to be repeated because C a collision occurred while transmitting a character in a bus configuration, or C cts (transmission enable) has been withdrawn during transmission of a character in point-to-point configuration. xpr transmit pool ready a data block of up to 32 bytes can be written to xfifo. 70 imr0 tcd 1 perr scd plla cdsc rfo rpf imr1 1 1 alls xdu tin csc xmr xpr bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 233 07.96 port value register (pvr) access: read/write address: ch-a: 3c h ch-b: 7c h pvr is accessible via both channel addresses (3c h or 7c h ). each of the above bits is assigned to the universal port pin (p0 p7) with the same number. read access pvr shows the value of all pins (input and output). input values can be separated via software by and-ing pcr and pvr. write access pvr accepts values for all output pins (defined via pcr). values written to input pin locations are ignored. 70 pvr pvr7 pvr0 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 234 07.96 port interrupt status register (pis) access: read address: ch-a: 3d h ch-b: 7d h pis is accessible via both channel addresses (3d h or 7d h ). each of the above bits is assigned to the universal port pin (p0 p7) with the same number. bit pisn is set and an interrupt is generated on int if C the corresponding universal port pin pn is defined as input via register pcr and C the interrupt source is enabled by resetting the corresponding interrupt mask pimn in register pim and C a state transition has occurred on pin pn. for definite detection of a real state transition, pulse width should not be shorter than 20 ns. note: bits pisn are reset when register pis is read. masked interrupts are not normally indicated when pis is read. instead, they remain internally stored and pending. a pending interrupt is generated when the corresponding mask bit is reset to zero. however, if bit ipc:vis is set to 1, interrupt statuses in pis may be flagged although they are masked via register pim. these masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are visible in register gis. if more than one consecutive state transition occurs on the same pin before the pis register is read, only one interrupt request will be generated. 70 pis pis7 pis0 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 235 07.96 port interrupt mask register (pim) access: write address: ch-a: 3d h ch-b: 7d h value after reset: ff h pim is accessible via both channel addresses (3d h or 7d h ). each of the above bits is assigned to the universal port pin (p0 ... p7) and to the bits of register pis with the same number. 0 interrupt source is enabled. 1 interrupt source is disabled. a 1 in a bit position of pim sets the mask active for the interrupt status in pis. masked interrupt statuses neither generate an interrupt vector or a signal on int, nor are they visible in register gis. moreover, they will C not be displayed in the interrupt status register if bit ipc:vis is set to 0 C be displayed in the interrupt status register if bit ipc:vis is set to 1. refer to description of register pis. note: after reset, all interrupt sources are dis abled. 70 pim pim7 pim0 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 236 07.96 port configuration register (pcr) access: read/write address: ch-a: 3e h ch-b: 7e h value after reset: ff h pcr is accessible via both channel addresses (3e h or 7e h ). each of the above bits is assigned to the universal port pin (p0 p7) with the same number. if bit pcrn (n = 0 7) is set to 0 pin pn is defined as output. 1 pin pn is defined as input. note: after reset, all pins of the universal port are defined as inputs. 70 pcr pcr7 pcr0 bisync mode
sab 82532/saf 82532 detailed register description semiconductor group 237 07.96 channel configuration register 4 (ccr4) (version 3 upwards, otherwise unused) access: read/write address: ch-a: 3f h ch-b: 7f h value after reset: 00 h note: unused bits have to be set to logical 0. 70 ccr4 mck4 ebrg tst1 icd 0 0 0 0 mck4 master clock divide-by-4 this bit is valid when master clock option is selected by setting ccr0:mce = 1. 0 (default) xtal 1-2 clock feeds the core logic and timer blocks. this causes the xtal frequency to be restricted to 10 mhz, thus limiting the highest baud rate to about 600 kbit/s. 1 xtal 1-2 clock divide-by-4 feeds the core logic and timer blocks. this allows the device to function with xtal frequency up to 30 mhz. the baud rate generator is fed directly from the xtal and can thus be used to provide clocks for baud rates in excess of 2 mbaud in asynch oversampling mode. it also allows the timer block to operate at the highest resolution. ebrg enhanced baud rate generator mode 0 (default) selects standard baud rate generator operation. see description of brg register. 1 selects enhanced baud rate generator. see description of brg register. tst1 test pin write 0 for normal operation. icd invert polarity of carrier detect signal 0 (default) selects the current polarity for carrier detect cd (active high) 1 selects the invert polarity to be more consistent with other equipment, carrier detect/cd (active low). as cd is a multifunctional pin, the icd bit may only be set if cd functionality is being used. bisync mode
sab 82532/saf 82532 electrical characteristics semiconductor group 238 07.96 11 electrical characteristics 11.1 absolute maximum ratings note: stresses above those listed here may cause permanent damage to the device. exposure to absolute maximum rating conditions for extended periods may affect device reliability. parameter symbol limit values unit min. max. ambient temperature sab under bias saf t a t a 0 C 40 70 85 c c storage temperature t stg - 65 150 c supply voltage v dd - 0.3 7.0 v input voltage v i - 0.3 v dd + 0.3 (max. 7.0 v) v output voltage v o - 0.3 v dd + 0.3 (max. 7.0 v) v 11.2 dc characteristics sab: v dd = 5 v 5 %; v ss = 0 v; t a = 0 to 70 c saf: v dd = 5 v 5 %; v ss = 0 v; t a = C 40 to 85 c parameter symbol limit values unit test condition min. max. input low voltage (not xtal1, width) v il C 0.4 0.8 v input high voltage (not xtal1,width) v ih 2.0 v dd + 0.4 v input low voltage (width) v wil C 0.4 1.0 v input high voltage (width) v wih 3.5 v dd + 0.4 v input low voltage (ale) v ail C 0.4 v ss v demultiplexed siemens/intel mode v ail C 0.4 0.8 v multiplexed siemens/intel mode input low voltage (xtal1) v xil C 0.4 0.5 v input high voltage (xtal1) v xih 3.5 v dd + 0.4 v
sab 82532/saf 82532 electrical characteristics semiconductor group 239 07.96 note: the listed characteristics are ensured over the operating range of the integrated circuit. typical characteristics specify mean values expected over the production spread. if not otherwise specified, typical characteristics apply at t a = 25 c and the given supply voltage. output low voltage v ol 0.45 v i ol =7ma (pins txd, rxd) i ol =2ma (all others except xtal2) output high voltage output high voltage v oh v oh 2.4 v dd C 0.5 v v i oh = C 400 m a i oh = C 100 m a power supply current operational i cc 15 ma v dd = 5 v c p = 2 mhz inputs at 0 v/ v dd , no outputs loads power-down 2 ma input leakage current output leakage current i li i lo 10 m a0 v < v in < v dd to 0 v 0 v < v out < v dd to 0 v 11.2 dc characteristics (contd) sab: v dd = 5 v 5 %; v ss = 0 v; t a = 0 to 70 c saf: v dd = 5 v 5 %; v ss = 0 v; t a = C 40 to 85 c parameter symbol limit values unit test condition min. max.
sab 82532/saf 82532 electrical characteristics semiconductor group 240 07.96 11.3 capacitances v dd = 5 v 5 %; v ss = 0 v; t a =25 c parameter symbol limit values unit min. max. input capacitance 1) c in 510pf output capacitance 1) c out 815pf i/o capacitance 1) c io 10 20 pf 1) not testet in production
sab 82532/saf 82532 electrical characteristics semiconductor group 241 07.96 note: the listed characteristics are ensured over the operating range of the integrated circuit. typical characteristics specify mean values expected over the production spread. if not otherwise specified, typical characteristics apply at t a =25 c and the given supply voltage. the ac testing input/output waveforms are shown below: figure 53 input/output waveform for ac tests 11.4 ac characteristics sab: v dd = 5 v 5 %; v ss = 0 v; t a = 0 to 70 c saf: v dd = 5 v 5 %; v ss = 0 v; t a = C 40 to 85 c parameter symbol limit values unit test condition inputs all inputs except xtal1 and width are driven to v ih 2.4 v for logical 1 v il 0.4 v for logical 0 xtal1 and width (cmos inputs) are driven to v ih 4.0 v for logical 1 v il 0.4 v for logical 0 timing measurements measurements except for xtal2 are driven to v h 2.0 v for logical 1 v l 0.8 v for logical 0 measurements for xtal2 are driven to v h 3.5 v for logical 1 v l 1.0 v for logical 0
sab 82532/saf 82532 electrical characteristics semiconductor group 242 07.96 11.4.1 microprocessor interface 11.4.1.1 siemens/intel bus interface mode figure 54 siemens/intel non-multiplexed address timing
sab 82532/saf 82532 electrical characteristics semiconductor group 243 07.96 figure 55 siemens/intel multiplexed address timing
sab 82532/saf 82532 electrical characteristics semiconductor group 244 07.96 figure 56 siemens/intel read cycle timing note 1: function of dtack is described logically as: dtack = (cs dacka dackb + rd wr ) intai. intai is an internally generated signal. note 2: drr is reset with the falling edge of rd during the last read access to rfifo.
sab 82532/saf 82532 electrical characteristics semiconductor group 245 07.96 figure 57 siemens/intel write cycle timing note 1: function of dtack is described logically as: dtack = ( cs dacka dackb + rd wr ) intai. intai is an internally generated signal. note 2: drt is reset with the falling edge of cs or dack if the last write access to xfifo is expected. however, drt will be activated again in the case of an access to any other register or fifo.
sab 82532/saf 82532 electrical characteristics semiconductor group 246 07.96 figure 58 siemens/intel interrupt timing (slave mode) note 1: timing valid for active-high push-pull signal, timing for active-low push-pull signal is the same. in case of an open drain output, reset time (t23) depends on external devices. note 2: function of dtack is described logically as: dtack = ( cs dacka dackb + rd wr) intai. intai is an internally generated signal. it is generated if the interrupt acknowledge cycle is considered valid.
sab 82532/saf 82532 electrical characteristics semiconductor group 247 07.96 figure 59 siemens/intel interrupt timing (daisy chaining) note 1: timing valid for active-high push-pull signal. timing for active-low push-pull signal is the same. in case of an open-drain output, reset times (t23, t31) depend on external devices. note 2: timing for cs, dack, int, inta and d7 d0 is similar to slave mode.
sab 82532/saf 82532 electrical characteristics semiconductor group 248 07.96 siemens/intel bus interface timing and interrupt timing no. parameter symbol limit values unit min. max. 1 address, bhe, dack setup time t su(a) 5ns 2 address, bhe, dack hold time t h(a) 10 ns 3 cs setup time t su(a) 0ns 3a cs hold time t h(a) 0ns 4 address, bhe stable before ale inactive t su(a-ale) 20 ns 5 address, bhe hold after ale inactive t su(ale-a) 10 ns 6 ale pulse width t w(ale) 30 ns 7 address latch setup time before command active t su(ale) 0ns 7a ale to command inactive delay t rec(ale) 20 ns 8 rd pulse width t w(r) 70 ns 9 rd control interval t rec(r) 50 ns 10 data valid after rd active t a(r) 65 ns 11 data hold after rd inactive t v(r) 10 ns 11a rd inactive to data bus tristate 1) t dis(r) 40 ns 12 drr low after rd active t p(drr) 45 ns 13 wr pulse width t w(w) 35 ns 14 wr control interval t rec(w) 35 ns 15 data stable before wr inactive t su(d) 30 ns 16 data hold after wr inactive t h(d) 5ns 17 drt low after cs, dack active t dis(drt) 30 ns 18 drt return to one after cs, dack inactive t p(drt) 30 ns 19 cs, dack inactive setup ( inta cycle) t dis(s-int) 0ns 20 cs, dack inactive hold ( inta cycle) t inta-s 0ns 21 inta pulse width t w(inta) 70 ns 22 inta control interval t rec(inta) 30 ns 23 int reset after last inta inactive t inta-int 30 ns 24 slave address (ie0, ie1) setup time t su(ie) 10 ns 25 slave address (ie0, ie1) hold time t h(ie) 5ns 1) not testet in production
sab 82532/saf 82532 electrical characteristics semiconductor group 249 07.96 26 interrupt vector (d7 d0) valid after inta active t a(vec) 50 ns 27 interrupt vector (d7 d0) hold after inta inactive t v(vec) 10 40 ns 28 ie0 low after ie1 low t ie1l-ie0l 20 ns 29 ie0 high after ie1 high t ie1h-ie0h 20 ns 30 ie0 low after int active t intv-ie0l 10 ns 31 int inactive after ie1 low t dis(int) 25 ns 32 int reactivated after ie1 high t ie1h-intv 25 ns 33 ie0 high after int reset t intv-ie0h 30 ns 50 dtack active after command active t p(dtk) 30 ns 51 dtack active after inta active t p(int-dtk) 35 ns 28 dtack hold after command inactive t v(dtk) 10 40 ns 29 dtack hold after inta inactive t v(int-dtk) 10 40 ns note: t 27 max not tested in production siemens/intel bus interface timing and interrupt timing (contd) no. parameter symbol limit values unit min. max.
sab 82532/saf 82532 electrical characteristics semiconductor group 250 07.96 11.4.1.2 motorola bus interface mode figure 60 motorola read cycle timing note 1: function of dtack is described logically as: dtack = cs dacka dackb intai + ds r/ w ) i.e. in accordance with common specifications of motorola read accesses the timing of dtack is normally determined by ds. note 2: drr is reset with the falling edge of ds during the last read access to rfifo.
sab 82532/saf 82532 electrical characteristics semiconductor group 251 07.96 figure 61 motorola write cycle timing note 1: function of dtack is described logically as: dtack = cs dacka dackb intai + ds r/w i.e. in accordance with common specifications of motorola accesses. dtack goes active if either cs or dackx is active and r/w goes low. dtack goes inactive if cs and dackx are inactive or write r/w goes high. to guarantee correct function in the case of write bursts signals cs and dackx have to be inactive after each write access (e.g. by deriving them from the address strobe as).
sab 82532/saf 82532 electrical characteristics semiconductor group 252 07.96 note 2: drt is reset with the falling edge of cs or dack if the last write access to xfifo is expected. however, drt will be activated again in the case of an access to any other register or fifo. figure 62 motorola interrupt timing (slave mode) note 1: timing valid for active-high push-pull signal. timing for active-low push-pull signal is the same. in the case of an open-drain output, reset times (t23, t31) depend on external devices. note 2: function of dtack is described logically as: dtack = cs dacka dackb intai + ds r/w . intai is an internal signal. it is generated if the interrupt acknowledge cycle is considered valid.
sab 82532/saf 82532 electrical characteristics semiconductor group 253 07.96 figure 63 motorola interrupt timing (daisy chaining) note 1: timing valid for active-high push-pull signal. timing for active-low push-pull signal is the same. in the case of an open-drain output, reset times (t23, t31) depend on external devices. note 2: timing for cs, dack, int, inta, ds and d7 d0 is similar to slave mode. motorola bus interface timing and interrupt timing no. parameter symbol limit values unit min. max. 34 address, ble, dack setup time before ds active t su(a) 5ns 35 address, ble, dack hold after ds inactive t h(a) 0ns 36 cs active before ds active t su(a) 0ns 36a cs hold after ds inactive t h(a) 0ns 37 r/ w stable before ds active t su(rw) 5ns 38 r/ w hold after ds inactive t h(rw) 0ns 39 ds pulse width (read access) t w(ds)r 70 ns
sab 82532/saf 82532 electrical characteristics semiconductor group 254 07.96 39a ds pulse width (write access) t w(ds)w 35 ns 40 ds control interval t rec(ds) 50 ns 41 data valid after ds active (read access) t a(ds) 65 ns 42 data hold after ds inactive (read access) t v(ds) 10 ns 42a ds inactive to databus tristate 1) (read access) t dis(ds) 40 ns 43 drr low after ds active t p(drr) 45 ns 44 data stable before ds inactive (write access) t su(d) 30 ns 45 data hold after ds inactive (write access) t h(d) 5ns 46 drt low after ds or dack active t dis(drt) 30 ns 47 drt return to one after cs or dack inactive t p(drt) 30 ns 19a cs, dack inactive setup before ds ( inta cycle) t dis(s-inta) 20 ns 20a cs, dack inactive hold after ds ( inta cycle) t h(inta-s) 20 ns 22a inta control interval t rec(inta) 30 ns 23 int reset after last inta inactive t inta-int 30 ns 24 slave address (ie0, ie1) setup time t su(ie) 10 ns 25 slave address (ie0, ie1) hold time t h(ie) 5ns 28 ie0 low after ie1 low t ie1l-ie0l 20 ns 29 ie0 high after ie1 high t ie1h-ie0h 20 ns 30 ie0 low after int active t intv-ie0l 10 ns 31 int inactive after ie1 low t dis(int) 25 ns 32 int reactivated after ie1 high t ie1h-intv 25 ns 33 ie0 high after int reset t int-ie0h 20 ns 48 inta setup time t su(inta) 0ns 48a inta hold time t h(inta) 0ns 49 interrupt vector hold after ds or inta inactive t v(vec) 10 40 1) ns 50 dtack active delay t p(dtk) 30 ns 50a dtack active to data valid (read cycle) t dtk-d 30 1) ns 52 dtack hold after command inactive t v(dtk) 10 40 1) ns 1) not testet in production motorola bus interface timing and interrupt timing (contd) no. parameter symbol limit values unit min. max.
sab 82532/saf 82532 electrical characteristics semiconductor group 255 07.96 11.4.2 parallel port timing figure 64 parallel port write access figure 65 parallel port read access parallel port timing no. parameter symbol limit values unit min. max. 54 port output data valid after wr, ds inactive t qv 60 ns 55 port input data change to int active delay t p(pv-int) 50 ns 56 port input data stable before rd, ds active t su(p) 20 ns 57 port input data hold after rd, ds active t h(p) 30 ns
sab 82532/saf 82532 electrical characteristics semiconductor group 256 07.96 11.4.3 serial interface 11.4.3.1 clock input timing figure 66 clock timing no. parameter symbol limit values unit n n-10 min. max. min. max. 58 rxclk clock period t c(rxc) 480 1) 30 3) 100 1) 30 3) ns ns 59 rxclk high time t w(rxch) 150 1) 13 3) 45 1) 13 3) ns ns 60 rxclk low time t w(rxcl) 150 1) 13 3) 45 1) 13 3) ns ns 61 txclk clock period t c(txc) 480 100 ns 62 txclk high time t w(txch) 150 45 ns 63 txclk low time t w(txcl) 150 45 ns 64 xtal1 clock period t c(xtal1) 480 2) 30 3) 50 2) 30 3) ns ns 65 xtal1 high time t w(xtal1h) 150 2) 13 3) 23 2) 13 3) ns ns 66 xtal1 low time t w(xtal1l) 150 2) 13 3) 23 2) 13 3) ns ns 1) externally clocked: clock mode 0, 1 except async, bcr = 16. 2) externally clocked: clock mode 4 except async, bcr = 16; master clock mode generally. 3) internally clocked: hdlc, bisync: dpll + baud rate generator used; async all other clocking modes.
sab 82532/saf 82532 electrical characteristics semiconductor group 257 07.96 11.4.3.2 receive cycle timing figure 67 receive cycle timing note 1: whichever supplies the clock: externally clocked by rxclk or xtal1, or, internally derived from dpll, brg or bcr divider (refer to table 5 ). note 2: nrz, nrzi and manchester coding. note 3: fm0 and fm1 coding. note 4: carrier detect auto start enabled (not for clock modes 1, 5).
sab 82532/saf 82532 electrical characteristics semiconductor group 258 07.96 receive cycle timing no. parameter symbol limit values unit n n-10 min. max. min. max. receive data rate ext. clocked 2 10 mbit/s (exept async, bcr = 16) int. clocked 2 2 mbit/s (hdlc, bisync: only dpll) int. clocked 2 2 mbit/s (all other internal modes) 67 clock period ext. clocked t c(rc) 480 100 ns (exept async, bcr = 16) int. clocked 480 480 ns (hdlc, bisync: only dpll) int. clocked 480 480 ns (all other internal modes) 68 receive data setup t su(r d) 10 10 ns 69 receive data hold t h(r d) 30 30 ns 70 carrier detect setup t su(cd) 50 50 ns 71 carrier detect hold t h(cd) 30 30 ns 72 cd status change to int delay t cd-int t73 + 60 t73 + 60 ns
sab 82532/saf 82532 electrical characteristics semiconductor group 259 07.96 11.4.3.3 transmit cycle timing figure 68 transmit cycle timing note 1: whichever supplies the clock: externally clocked by txclk, xtal1 or rxclk or, internally derived from dpll, brg or bcr divider (refer to table 5 ). note 2: nrz and nrzi coding. note 3: fm0, fm1 and manchester coding. note 4: if output function is enabled (refer to table 5 ). note 5: the timing shown is valid for normal operation and bus configuration mode 1. in bus configuration mode 2, rts and txd are shifted for 1/2 clock period.
sab 82532/saf 82532 electrical characteristics semiconductor group 260 07.96 transmit cycle timing no. parameter symbol limit values unit n n-10 min. max. min. max. transmit data rate ext. clocked 2 10 mbit/s (exept async, bcr = 16) int. clocked 2 2 mbit/s (hdlc, bisync: only dpll) int. clocked 2 2 mbit/s (all other internal modes) 73 clock period ext. clocked t c(xc) 480 100 ns (exept async, bcr = 16) int. clocked 480 480 ns (hdlc, bisync: only dpll) int. clocked 480 480 ns (all other internal modes) 74 transmit data delay t p(txd) 55 55 ns 74c transmit data delay t p(txd) 75 75 ns 74a rxd to txd delay (sdlc loop, off loop state t p(rxd-txd) 50 50 ns 75 clock output to transmit data delay t p(xc-txd) C 30 20 C 30 20 ns 76 collision data and cts setup time t su(cxd) 10 10 ns 77 collision data and cts hold time t h(cxd) 30 30 ns 78 request to normal operation t p(rts) 60 60 ns send delay bus configuration 50 50 79 cts status change to int delay t cts-int t73 + 60 t73 + 60 ns
sab 82532/saf 82532 electrical characteristics semiconductor group 261 07.96 11.4.3.4 strobe timing (clock mode 1) figure 69 strobe timing note 1: high impedance if txd is set to open drain function. otherwise, active high. note 2: normal operation and bus configuration mode 1. note 3: bus configuration mode 2.
sab 82532/saf 82532 electrical characteristics semiconductor group 262 07.96 strobe timing no. parameter symbol limit values unit n n-10 min. max. min. max. 80 receive strobe delay t rxcl-rs 30 30 ns 81 receive strobe setup t su(rs) 30 30 ns 82 receive strobe hold t h(rs) 30 30 ns 83 transmit strobe delay t rxcl-xs 30 30 ns 84 transmit strobe setup t su(xs) 30 30 ns 85 transmit strobe hold t h(xs) 30 30 ns 86 transmit data delay from clock t p(rxc-txd) 55 55 ns 87 transmit data delay from strobe t p(xs-txd) 50 50 ns 88 high impedance from clock t dis(rxc) 50 50 ns 89 high impedance from strobe t dis(xs) 50 50 ns
sab 82532/saf 82532 electrical characteristics semiconductor group 263 07.96 11.4.3.5 synchronization timing (clock mode 5) figure 70 synchronization timing note 1: normal operation and bus configuration mode 1. note 2: bus configuration mode 2 note 1: clock mode 5 only specified for versions sab/saf 82532 n-10 and sab/saf 82532 h-10, but not for versions sab 82532 n and sab 82532 h. synchronization timing no. parameter symbol limit values unit n n-10 min. max. min. max. 90 sync pulse delay t r c-sync 30 ns 91 sync pulse setup t su(sync) 30 ns 92 sync pulse hold t h(sync) 25 ns 93 time-slot control delay t p(tslc) 20 75 ns
sab 82532/saf 82532 electrical characteristics semiconductor group 264 07.96 11.4.3.6 reset timing reset timing no. parameter symbol limit values unit n n-10 min. max. min. max. 80 res pulse width t w(res) 5000 5000 ns
sab 82532/saf 82532 package outlines semiconductor group 265 07.96 12 package outlines p-lcc-68 (plastic leaded chip carrier) gpl05099 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device
sab 82532/saf 82532 package outlines semiconductor group 266 07.96 p-mqfp-80 (plastic metric quad flat package) gpm05249 sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device
sab 82532/saf 82532 appendix semiconductor group 267 07.96 13 appendix 13.1 baud rate generator tables the value in brackets (n + 1), where n is programmed in br9 bro. maximum tolerance < 2.5 % f baud = f xtal/(16 (n + 1) 2) table 9 standard baud rate generator selections baud rate frequency [mhz] 2.048 3.088 6.480 8.000 8.192 9.126 12.00 15.36 16.00 16.384 18.432 300 300.5 (212) 299.7 (321) 300 (674) 200.1 (832) 300.1 (852) 300 (959) 1200 1207.5 (52) 1206.3 (79) 1198 (168) 1201.9 (207) 1201.9 (212) 1200 (239) 1198.1 (312) 1200.0 (400) 1196.2 (417) 1196.3 (427) 1200 (479) 2400 2370.4 (26) 2412.5 (37) 2410.7 (83) 2403.8 (103) 2392.5 (106) 2400 (119) 2403.8 (155) 2400.0 (200) 2403.8 (207) 2392.5 (213) 2400 (239) 4800 4825 (19) 4821.7 (91) 4807.7 (51) 4800 (59) 4807.7 (77) 4800/0 (100) 4807.8 (103) 4785 (106) 4800 (119) 9600 9650 (9) 9642.9 (20) 9615.4 (25) 9481.5 (26) 9600 (29) 9615.4 (38) 9600.0 (50) 9615.9 (51) 9660.9 (52) 9600 (59) 19.2 k 19.3 k (4) 19.23 k (12) 19.2 k (14) 18.75 k (19) 19.2 k (25) 19.23 k (25) 18.96 k (26) 19.2 k (26) 38.4 k 37.5 k (9) 38.46 k (12) 35.4 k (14) 48.0 k 48.25 k (1) 48 k (5) 46.88 k (7) 48.0 (10) 48 k (11) 64.0 k 64 k (0) 62.5 k (3) 64 k (13) 62.5 k (5) 62.5 k (7) 64 k (7) 64 k (8) 96.0 k 96.5 k (0) 96 k (2) 93.75 (3) 96.0 (5) 96 k (5) 115.2 k 115.2 k (4) 144 k 144 k (1) 144 k (3) 192 k 187.5k (1) 192k (2) 288 k 288 k (0) 288 k (1) 384 k ck/16 baud (max.) 128 k 193 k 405 k 500 k 512 k 576 k 750 k 960 k 1000 k 1024 k 1152 k
sab 82532/saf 82532 appendix semiconductor group 268 07.96 the value in brackets is (n + 1, m 1) ) and is used to determine the baud rate as follows: baud = fxtal/16 (n + 1) 2m. maximum tolerance < 2.5 % except where indicated by 2) when it is < 5%. m=0 1) may not be supported for xtal frequencies above 10 mhz (to be characterized). where 0 < n < 63 and n is programmed in bits br5 br0 in register brg and 0 < m < 15 and m is programmed in bits br9 br6 in register brg and ccr2 registers. table 10 enhanced baud rate generator selections baud rate frequency [mhz] 2.048 3.088 6.480 8.000 8.192 9.126 12.00 15.36 16.00 16.384 18.432 29.491 300 301.9 (53/3) 301.6 (10/6) 301.6 (21/6) 300.5 (26/6) 301.9 (53/5) 300.0 (30/6) 300.5 (39/6) 300.0 (25/7) 300.5 (26/7) 301.9 (53/6) 300.0 (30/7) 300 (48/7) 1200 1207 (53/1) 1206.3 (10/4) 1205.3 (21/4) 1201.9 (26/4) 1207 (53/3) 1200.0 (30/4) 1201.9 (39/4) 1200.0 (25/5) 1201.9 (26/5) 1207 (53/4) 1200.0 (30/5) 1200 (48/5) 2400 2415 (53/0) 2412.5 (10/3) 2410.7 (21/3) 2403.8 (26/3) 2415 (53/2) 2400.0 (30/3) 2403.8 (39/3) 2400.0 (25/4) 2403.8 (26/4) 2415 (53/3) 2400.0 (30/4) 2400 (48/4) 4800 4740.7 (27/0) 4825 (10/2) 4821 (21/2) 4807.6 (26/2) 4830 (53/1) 4800.0 (30/2) 4807.7 (39/2) 4800/0 (25/3) 4807.7 (26/3) 4830 (53/2) 4800.0 (30/3) 4800 (48/3) 9600 9846.2 2) (13/0) 9650 (10/1) 9642 (21/1) 9615.4 (26/1) 9660.4 (53/0) 9600.0 (30/1) 9615.4 (39/1) 9600.0 (25/2) 9615.4 (26/2) 9660.4 (53/1) 9600.0 (30/2) 9600 (48/2) 19.2 k 19.13 (10/0) 19.29 (21/0) 19.23 (26/0) 18.96 (27/0) 19.2 (30/0) 19.23 (39/0) 19.2 (25/1) 19.23 (26/1) 18.96 (27/1) 19.20 (30/1) 19.20 (48/1) 38.4 k 38.6 (5/0) 38.46 (13/0) 39.38 2) (13/0) 38.4 (15/0) 37.5 (10/1) 38.4 (25/0 1) ) 38.46 (13/1) 39.38 (13/1) 38.4 (15/1) 38.4 (24/1) 48.0 k 48.25 (4/0) 48.0 (12/0) 46.5 (8/1) 48.0 (10/1) 50 2) (10/1) 46.54 2) (11/1) 48.0 (12/1) 48.5 (19/1) 64.0 k 64.0 (2/0) 64.33 (3/0) 62.5 (8/0) 64.0 (8/0) 64.0 (9/0) 62.5 (6/1) 64.0 (15/0 1) ) 62.5 (8/1) 64.0 (8/1) 64.0 (9/1) 65.83 2) (14/1) 96.0 k 96.5 (2/0) 96.0 (6/0) 93.75 (4/1) 96.0 (5/1) 96.0 (6/1) 92.16 2) (10/1) 115.2 k 115.2 (5/0) 115.2 (5/1) 115.2 (8/1) 144 k 144.0 (4/0) 142.85 (7/1) 146.29 (7/1) 144.0 (4/1) 141.7 (13/0 1) ) 192 k 193 (1/0) 192 (3/0) 187.5 (2/1) 192.0 (5/0 1) ) 192.0 (3/1) 288 k 288 (1/1) 288.0 (2/1) 384 k 375 (1/1) 768 k ck/16 baud (max.) 128 k 193 k 405 k 500 k 512 k 576 k 750 k 960 k 1000 k 1024 k 1152 k 1843.2 k
sab 82532/saf 82532 appendix semiconductor group 269 07.96 the value in brackets is (n + 1, m 1) ) and is used to determine the baud rate as follows: baud = fxtal/16 (n + 1) 2m. maximum tolerance < 2.5 % except where indicated by 2) when it is < 5%. m=0 1) may not be supported for xtal frequencies above 10 mhz (to be characterized). where 0 < n < 63 and n is programmed in bits br5 br0 in register brg and 0 < m < 15 and m is programmed in bits br9 br6 in register brg and ccr2 registers. table 11 enhanced baud rate generator selections (continued) baud rate frequency 29.4912 mhz 50 50 (36/10) 75 75 (48/9) 110 110 (33/9) 134.5 133.3 (54/8) 150 150 (48/8) 200 200 (36/8) 57.6k 57.6k (16/1) 76.8k 76.8 (12/1) 153.6k 153.6k (6/1) 230.4 230.4k (4/1) 307.2k 307.2k (3/1) 460.8k 460.8k (2/1) 614.4k 614.4k (3/0 1) ) 921.6 921.6k (0/1) ck/16 baud (max.) 1.8432
sab 82532/saf 82532 appendix semiconductor group 270 07.96 13.2 development board easy532 the escc2 datacom user board (easy532) provides a hardware and software development tool for datacom applications using the pc as an interface to the user. the easy532 consists of the enhanced serial communication controller (escc2), a microprocessor system based on the 16-bit sab 80186, 256-kbyte ram, 64-kbyte eprom and a 2-kbyte dual-port ram. the board has a wiring area for small applications or special adapters can be added to connect the easy532 with a target application outside the pc. the easy532 assists an engineer in developing a datacom application and greatly reduces the time spent for hardware and software development. this development kit comes with all the software drivers, board schematics and support documentation that is needed to complete either a synchronous or asynchronous datacom project. menu driven software allows the designer to access all registers on the board and to test applications. the easy532 development system can serve as a reference design with schematics and software drivers. this tested application demonstrates how to build a specific datacom interface. siemens provides these tools in a effort to shorten the customers design cycle while assisting them to build high-quality products. easy532 features ? an open hardware design that includes extensive documentation. ? application software can be tested in advance of (or concurrent with) hardware development. ? provided c source code drivers can be modified to fit the users application needs. ? time to market and design costs are reduced. ? asynchronous, synchronous or bisync applications can be designed with the same development board. ? a user-friendly pc based interface with pull-down menus and multiple screens. ? board installation is quick and easy. ? the easy532 may be used as a reference hardware and software design that includes tested schematics. type ordering code easy532 Q67100-H6222
sab 82532/saf 82532 appendix semiconductor group 271 07.96 figure 71 block diagram easy532
sab 82532/saf 82532 appendix semiconductor group 272 07.96


▲Up To Search▲   

 
Price & Availability of Q67100-H6222

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X